| 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
|