diff --git a/app/api/logic/LoginLogic.php b/app/api/logic/LoginLogic.php index ad83473aa..098cebdd3 100755 --- a/app/api/logic/LoginLogic.php +++ b/app/api/logic/LoginLogic.php @@ -226,7 +226,7 @@ class LoginLogic extends BaseLogic $decodedArray = json_decode(json_encode($decoded), true); $jwtData = $decodedArray['data'] ?? []; if (empty($jwtData['uid']) || empty($jwtData['phone'])) { - self::setError('解析数据缺少必要参数'); + self::setError('当前账号未授权,请手动登录'); return false; } $where = ['account|mobile' => $jwtData['phone']]; diff --git a/config/database.php b/config/database.php index b09a9bd6f..bfc14de47 100755 --- a/config/database.php +++ b/config/database.php @@ -50,7 +50,7 @@ return [ // 是否严格检查字段是否存在 'fields_strict' => true, // 是否需要断线重连 - 'break_reconnect' => false, + 'break_reconnect' => true, // 监听SQL 'trigger_sql' => env('app_debug', true), // 开启字段缓存