基础功能、图片上传

This commit is contained in:
2025-05-12 16:13:46 +08:00
parent 8e30209540
commit 4f2e662b7d
16 changed files with 533 additions and 211 deletions

View File

@@ -25,12 +25,12 @@ class LoginController extends BaseController
public function login()
{
$this->insertField = [
'phone', 'password', 'remember'
'account', 'password'
];
$param = $this->checkRequiredFields(request()->post());
return jok(
$this->service->login($param['phone'], $param['password']),
$this->service->login($param['account'], $param['password']),
'登录成功'
);
}
@@ -54,4 +54,20 @@ class LoginController extends BaseController
);
}
public function logout()
{
return jok(
[],
'退出成功'
);
}
public function codes()
{
return jok(
[],
'获取成功'
);
}
}