|
|
|
@ -132,6 +132,11 @@ class Callback extends Controller
|
|
|
|
|
if ($adminUser) {
|
|
|
|
|
Session::set('user_id', $adminUser['id']);
|
|
|
|
|
return redirect('http://web.lbschem.com:8088/?authkey=wxwork&sessionid='.session_id());
|
|
|
|
|
} elseif (Session::get('user_id')) {
|
|
|
|
|
db('admin_user')->where('id', Session::get('user_id'))->update([
|
|
|
|
|
'wxwork_id' => $userInfo['userid']
|
|
|
|
|
]);
|
|
|
|
|
return redirect('http://web.lbschem.com:8088/?authkey=wxwork&sessionid='.session_id());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return redirect('http://web.lbschem.com:8088/');
|
|
|
|
|