From 3b8b753d29393dcb0502a6bae3fdb9d225b5db83 Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 30 Sep 2022 18:34:27 +0800 Subject: [PATCH] tip message update --- controller/ApiController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/ApiController.php b/controller/ApiController.php index 9013efe..4ffb1ab 100644 --- a/controller/ApiController.php +++ b/controller/ApiController.php @@ -159,7 +159,7 @@ Class ApiController extends Controller { return $this->renderJson(compact('code', 'msg', 'err', 'data')); } - //移动目录 + //移动目录或文件 public function actionMove() { $code = 0; $msg = $err = ''; @@ -188,9 +188,9 @@ Class ApiController extends Controller { $res = rename("{$target}/{$fromDir}", "{$target}/{$toDir}"); if ($res) { $code = 1; - $msg = '目录移动完成'; + $msg = '目录/文件移动完成'; }else { - $err = '目录移动失败,请确认被移动目录存在及目标目录权限配置正确!'; + $err = '目录/文件移动失败,请确认被移动目录/文件存在及目标目录权限配置正确!'; } }catch(Exception $e) { $err = $e->getMessage();