增加初始化admin账号密码命令行;修改部分声明;增加表注释生成关联的功能;

This commit is contained in:
augushong
2021-11-29 18:26:07 +08:00
parent 6f461fa6b6
commit 10046031e6
8 changed files with 157 additions and 74 deletions

View File

@@ -128,10 +128,10 @@ class Admin extends AdminController
*/
public function password($id)
{
$this->checkPostRequest();
$row = $this->model->find($id);
empty($row) && $this->error('数据不存在');
if ($this->request->isAjax()) {
$this->checkPostRequest();
$post = $this->request->post();
$rule = [
'password|登录密码' => 'require',