wesmiler 2 ngày trước cách đây
mục cha
commit
4a2125268d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/Http/Controllers/Api/UploadController.php

+ 2 - 2
app/Http/Controllers/Api/UploadController.php

@@ -75,7 +75,7 @@ class UploadController extends webApp
         }
 
         // 返回结果
-        return showJson(MESSAGE_OK, true, ['url'=> $file_path, 'path'=> $result['data']['img_path']]);
+        return showJson(MESSAGE_OK, true, ['url'=> $file_path, 'path'=> $result['data']['file_path']]);
     }
 
     /**
@@ -101,7 +101,7 @@ class UploadController extends webApp
         }
 
         // 返回结果
-        return showJson(MESSAGE_OK, true, ['url'=> $file_path, 'path'=> $result['data']['img_path']]);
+        return showJson(MESSAGE_OK, true, ['url'=> $file_path, 'path'=> $result['data']['file_path']]);
     }
 
 }