xxxrrrdddd il y a 3 ans
Parent
commit
43cc6edf4e
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      application/common/library/WxPublic.php

+ 3 - 3
application/common/library/WxPublic.php

@@ -19,15 +19,15 @@ class WxPublic
     public function __construct()
     {
         $this->app=Factory::officialAccount([
-            'app_id'=>config('site.wxp_appid'),
-            'secret'=>config('site.wxp_appsecret'),
+            'app_id'=>config('site.user_appid'),
+            'secret'=>config('site.user_appsecret'),
             'log' => [
                 'level' => 'debug',
                 'file' => RUNTIME_PATH.'/wxp/wechat.log',
             ],
             'oauth' => [
                 'scopes'   => ['snsapi_userinfo'],
-                'callback' => '/index/user/wxp_handle#/aaa/bbb',
+                'callback' => '/index/user/wxp_handle',
             ],
         ]);
     }