更新细节
This commit is contained in:
parent
407df898bc
commit
4632f93f18
|
@ -26,13 +26,16 @@ class SystemUserValidate extends BaseValidate
|
|||
|
||||
public function checkApp($appid): bool|string
|
||||
{
|
||||
$app = System::field('id, status')->where('app_id',$appid)->findOrEmpty();
|
||||
$app = System::field('id, status, register_status')->where('app_id',$appid)->findOrEmpty();
|
||||
if ($app->isEmpty()) {
|
||||
return '应用错误';
|
||||
}
|
||||
if ($app['status'] != 0) {
|
||||
return '应用已禁止或删除';
|
||||
}
|
||||
if ($app['register_status'] != 1) {
|
||||
return '应用未开启注册';
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue