yingzi 2 năm trước cách đây
mục cha
commit
e1398cc07d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/system/controller/Upload.php

+ 1 - 1
app/system/controller/Upload.php

@@ -99,7 +99,7 @@ class Upload extends AuthController{
             return app('json')->fail("上传失败01");
         }
         $savePath = '/resource/' . $upPath;
-        return app('json')->success(['cert'=>$savePath,"type"=>$type]);
+        return app('json')->success(['cert'=>$savePath,"type"=>$type,"name"=>$file->getBasename()]);
     }