feat: 【小程序】小程序账号失效时,抛出指定 code

This commit is contained in:
gcd 2025-07-02 22:07:49 +08:00
parent 6a6dec7ade
commit 5b365673b5

View File

@ -303,7 +303,7 @@ class WorkerApi extends BaseService
}
if ($user->status === 0) {
throw new ApiException('当前账号不可用');
throw new ApiException('当前账号不可用', 401);
}
return true;