|
|
@ -55,7 +55,7 @@ class LoginController extends Controller |
|
|
$app = Factory::openPlatform($config); |
|
|
$app = Factory::openPlatform($config); |
|
|
dd($app); |
|
|
dd($app); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
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'])) { |
|
|
|