|
@@ -31,7 +31,7 @@ class FileUploadController extends BaseController
|
|
|
$path = storage_path() . "/app/public/" . FileUploadService::tmp_dir . '/' . $date. '/' . $file_name;
|
|
|
|
|
|
// 返回一个错误响应或默认图片
|
|
|
- if (! Storage::exists($path)) return response()->json(201, "File not exists");
|
|
|
+ if (! Storage::exists($path)) return $this->json_return(201,'File not exists');
|
|
|
|
|
|
return response()->file($path);
|
|
|
}
|