feat: 【小程序】小程序账号失效时,抛出指定 code
This commit is contained in:
parent
6a6dec7ade
commit
5b365673b5
|
|
@ -303,7 +303,7 @@ class WorkerApi extends BaseService
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->status === 0) {
|
if ($user->status === 0) {
|
||||||
throw new ApiException('当前账号不可用');
|
throw new ApiException('当前账号不可用', 401);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user