Finish mzl_dev

This commit is contained in:
mzl
2025-08-14 10:56:57 +08:00
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ class UserController extends BaseController
public function authorize(Request $request)
{
try {
$data = $this->validate($this->service->getValidator(), $request->post(), 'authorize');
$data = $request->post();
$res = $this->service->authorize($request, $data);
return $this->success([], '分配成功');
} catch (\Throwable $e) {
@@ -93,7 +93,7 @@ class UserController extends BaseController
public function updateResources(Request $request)
{
try {
$data = $this->validate($this->service->getValidator(), $request->post(), 'updateResources');
$data = $request->post();
$res = $this->service->updateResources($request, $data);
return $this->success([], '分配成功');
} catch (\Throwable $e) {
+5 -2
View File
@@ -156,8 +156,11 @@ class Generate
protected function deleteFileIfExists($path)
{
if (file_exists($path)) {
unlink($path);
echo "删除已存在文件: <comment>{$path}</comment> \n";
"文件: <comment>{$path}</comment> 已存在,核对后手动删除。\n";
return;
// unlink($path);
// echo "删除已存在文件: <comment>{$path}</comment> \n";
}
}