新增用户登录接口

This commit is contained in:
yaooo 2023-10-27 12:03:32 +08:00
parent 9046da6125
commit 93bbca9598
1 changed files with 1 additions and 1 deletions

View File

@ -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();