Browse Source

tip message update

master
filesite 2 years ago
parent
commit
3b8b753d29
  1. 6
      controller/ApiController.php

6
controller/ApiController.php

@ -159,7 +159,7 @@ Class ApiController extends Controller {
return $this->renderJson(compact('code', 'msg', 'err', 'data')); return $this->renderJson(compact('code', 'msg', 'err', 'data'));
} }
//移动目录 //移动目录或文件
public function actionMove() { public function actionMove() {
$code = 0; $code = 0;
$msg = $err = ''; $msg = $err = '';
@ -188,9 +188,9 @@ Class ApiController extends Controller {
$res = rename("{$target}/{$fromDir}", "{$target}/{$toDir}"); $res = rename("{$target}/{$fromDir}", "{$target}/{$toDir}");
if ($res) { if ($res) {
$code = 1; $code = 1;
$msg = '目录移动完成'; $msg = '目录/文件移动完成';
}else { }else {
$err = '目录移动失败,请确认被移动目录存在及目标目录权限配置正确!'; $err = '目录/文件移动失败,请确认被移动目录/文件存在及目标目录权限配置正确!';
} }
}catch(Exception $e) { }catch(Exception $e) {
$err = $e->getMessage(); $err = $e->getMessage();

Loading…
Cancel
Save