diff --git a/app/common/validate/user/SystemUserValidate.php b/app/common/validate/user/SystemUserValidate.php index 266ed681..858d183c 100644 --- a/app/common/validate/user/SystemUserValidate.php +++ b/app/common/validate/user/SystemUserValidate.php @@ -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; } } \ No newline at end of file