dyjh 6 năm trước cách đây
mục cha
commit
8ab1d71999
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/Http/Controllers/Api/V1/AlbumController.php

+ 2 - 2
app/Http/Controllers/Api/V1/AlbumController.php

xqd xqd
@@ -1897,7 +1897,7 @@ class AlbumController extends Controller
                     "url" => "http://weixin.qq.com/download",
                     "template_id" => $weChatApp->wxaccount_template_id,
                     "miniprogram" => array(
-                        "appid" => $weChatApp->app_id,
+                        "appid" => $weChatApp->xyx_id,
                         "pagepath" => $page
                     ),
                     "data" => array(
@@ -1951,7 +1951,7 @@ class AlbumController extends Controller
 
     public function getAccessToken($app)
     {
-        $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $app->app_id . "&secret=" . $app->app_secret;
+        $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $app->xyx_id . "&secret=" . $app->xyx_secret;
         $data = $this->curlGet($url);
         $data = json_decode($data, true);
         if( !isset($data["access_token"]) )