dyjh 6 年之前
父節點
當前提交
75e501f3df
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      app/Http/Controllers/Web/AuthController.php

+ 5 - 2
app/Http/Controllers/Web/AuthController.php

xqd
@@ -22,8 +22,11 @@ class AuthController extends Controller
             'app_id' => $weChatApp->G_app_id,
             'secret' => $weChatApp->G_app_secret,
             'response_type' => 'array',
-            'scopes'   => ['snsapi_userinfo'],
-            'callback' => '/web/notify',
+            'oauth' => [
+                'scopes'   => ['snsapi_userinfo'],
+                'callback' => '/web/notify',
+            ]
+
         ];
         $app = Factory::officialAccount($config);
         $response = $app->oauth