master
sunke 5 years ago
parent a9bd629e7a
commit ec309c2b6a

@ -960,11 +960,11 @@ class ArticleController extends AdminController {
$type = $upfile["type"];
$size = $upfile["size"];
$tmp_name = $upfile["tmp_name"];
$savePath = $_SERVER['DOCUMENT_ROOT'].__ROOT__.'/Uploads/Documents/';
$savePath = $_SERVER['DOCUMENT_ROOT'].__ROOT__.'/Documents/';
move_uploaded_file($tmp_name,$savePath.$name);
$file_name = $savePath.$name;
$error=$upfile["error"];//上传后系统返回的值
$data['document_route'] = 'Uploads/Documents/'.$name;
$data['document_route'] = 'Documents/'.$name;
M('document_pop_rules')->where(['id' => $id])->save($data);
$backData['tmp'] = $file_name;
$this->ajaxReturn(json_encode($backData,TRUE));

@ -0,0 +1 @@
Subproject commit 4c40f58e6c0c9afe8a505f404b4df11a98f15653
Loading…
Cancel
Save