Merge pull request 'preview' (#181) from preview into master
Reviewed-on: #181
This commit is contained in:
commit
13199b51a0
@ -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),
|
||||
// 开启字段缓存
|
||||
|
Loading…
x
Reference in New Issue
Block a user