From d931fb657b38f5f031fc20750d67206e44eb2b59 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Thu, 8 May 2025 15:23:39 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=BC=BA=E5=A4=B1=E4=BF=A1=E6=81=AF=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LoginLogic.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/api/logic/LoginLogic.php b/app/api/logic/LoginLogic.php index 77e2095..929076f 100755 --- a/app/api/logic/LoginLogic.php +++ b/app/api/logic/LoginLogic.php @@ -137,10 +137,11 @@ class LoginLogic extends BaseLogic } catch (Exception $e) { self::setError('登录失败:' . $e->getMessage()); return false; - } catch (\think\Exception $e) { - self::setError('登录失败:' . $e->getMessage()); - return false; } +// catch (\think\Exception $e) { +// self::setError('登录失败:' . $e->getMessage()); +// return false; +// } if (empty($user_id)) { $user_info = UserServer::createUser($response, Client_::mnp); @@ -211,7 +212,7 @@ class LoginLogic extends BaseLogic */ public static function getUserByWechatResponse($response) { - $user_id = Db::name('user_auth au') + $user_id = Db::name('user_auth')->field("au") ->join('user u', 'au.user_id=u.id') ->where(['u.del' => 0]) ->where(function ($query) use ($response) {