Merge pull request 'preview' () from preview into master

Reviewed-on: 
This commit is contained in:
mkm 2023-12-16 18:40:14 +08:00
commit 13199b51a0
2 changed files with 2 additions and 2 deletions
app/api/logic
config

@ -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']];

@ -50,7 +50,7 @@ return [
// 是否严格检查字段是否存在
'fields_strict' => true,
// 是否需要断线重连
'break_reconnect' => false,
'break_reconnect' => true,
// 监听SQL
'trigger_sql' => env('app_debug', true),
// 开启字段缓存