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();