소스 검색

修改文件上传,path->location

chenxiqiang 7 년 전
부모
커밋
ab8e8c4804
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      manage-server/app/Http/Controllers/CommonController.php

+ 1
- 1
manage-server/app/Http/Controllers/CommonController.php 파일 보기

64
                 $http_path = asset(str_replace('public', 'storage', $store_result));
64
                 $http_path = asset(str_replace('public', 'storage', $store_result));
65
                 return response()->json([
65
                 return response()->json([
66
                     'status' => 0,
66
                     'status' => 0,
67
-                    'path' => $http_path
67
+                    'location' => $http_path
68
                 ]);
68
                 ]);
69
             } else {
69
             } else {
70
                 return response()->json([
70
                 return response()->json([

Loading…
취소
저장