|
|
@ -53,9 +53,9 @@ class LoginController extends Controller |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
$app = Factory::openPlatform($config); |
|
|
$app = Factory::openPlatform($config); |
|
|
dd($app); |
|
|
|
|
|
|
|
|
dd($app['auth']); |
|
|
} |
|
|
} |
|
|
dd($agent->toArray()); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
$res = $app->auth->session($code); |
|
|
$res = $app->auth->session($code); |
|
|
if (!empty($res['errcode']) || empty($res['openid']) && empty($res['unionid'])) { |
|
|
if (!empty($res['errcode']) || empty($res['openid']) && empty($res['unionid'])) { |
|
|
|