pull/42/head
杨赟 2 years ago
parent 7d9ff20d3d
commit 15f8edc15f

@ -132,6 +132,11 @@ class Callback extends Controller
if ($adminUser) { if ($adminUser) {
Session::set('user_id', $adminUser['id']); Session::set('user_id', $adminUser['id']);
return redirect('http://web.lbschem.com:8088/?authkey=wxwork&sessionid='.session_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/'); return redirect('http://web.lbschem.com:8088/');

Loading…
Cancel
Save