From 4632f93f184a23a5b081a15b9db7288f4c480ff1 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Mon, 13 Nov 2023 16:56:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/validate/user/SystemUserValidate.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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