From 93bbca95981fd0711cfc20ff051cbee1e88733de Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Fri, 27 Oct 2023 12:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/User.php b/app/api/controller/User.php index 3e7ab86..d89de13 100644 --- a/app/api/controller/User.php +++ b/app/api/controller/User.php @@ -49,7 +49,7 @@ class User extends BaseController { $param = get_params(); if (empty($param['username']) || empty($param['password'])) { - $this->apiError('参数错误'); + $this->apiError('用户名密码不能为空'); } // 校验用户名密码 $user = Db::name('Admin')->where(['username' => $param['username']])->find();