From 15f8edc15fa001a23d4f46208df190734128efcf Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 24 Apr 2023 13:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/crm/controller/Callback.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/crm/controller/Callback.php b/application/crm/controller/Callback.php index e5b2475..e9c8744 100644 --- a/application/crm/controller/Callback.php +++ b/application/crm/controller/Callback.php @@ -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/');