Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
更新:修复已知安装bug
  • Loading branch information
zhuchunshu committed Mar 30, 2022
1 parent e569dee commit 1389cec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/Controller/InstallController.php
Expand Up @@ -61,6 +61,18 @@ public function next()
return $this->$method(request());
}

public function step_5($request){
AdminUser::query()->create([
'email' => $request->input("email"),
'username' => $request->input("username"),
'password' => Hash::make($request->input("password")),
]);
if (!file_exists(BASE_PATH . "/app/CodeFec/storage/install.lock")) {
file_put_contents(BASE_PATH . "/app/CodeFec/storage/install.lock", date("Y-m-d H:i:s"));
}
return Json_Api(200, true, ['msg' => '安装成功!']);
}


#[PostMapping(path: "/install")]
public function post(): array
Expand Down

0 comments on commit 1389cec

Please sign in to comment.