dyjh 6 år sedan
förälder
incheckning
75e501f3df
1 ändrade filer med 5 tillägg och 2 borttagningar
  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