app未授权友好提示

This commit is contained in:
chenbo 2023-12-15 10:10:13 +08:00
parent eecc48ad9a
commit 448d1a301a

View File

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