|
@@ -22,7 +22,7 @@ class UploadController extends Controller
|
|
|
$imageUrl = Storage::put($path . $filename, file_get_contents($filePath));
|
|
|
Log::debug('upload_url:' . $imageUrl);
|
|
|
if ($imageUrl) {
|
|
|
- return $this->jsonSuccess(['url' => $path . $filename]);
|
|
|
+ return $this->jsonSuccess(['url' => config('customer.chxq_oss_url').$path . $filename]);
|
|
|
} else {
|
|
|
return $this->jsonError('图片上传失败,请重试');
|
|
|
}
|
|
@@ -43,7 +43,7 @@ class UploadController extends Controller
|
|
|
$filename = time() . '_' . uniqid() . '.' . $kuoname;
|
|
|
$imageUrl = Storage::put($filename, file_get_contents($filePath));
|
|
|
if ($imageUrl) {
|
|
|
- array_push($urls, $filename);
|
|
|
+ array_push($urls, config('customer.chxq_oss_url').$filename);
|
|
|
} else {
|
|
|
Log::debug('文件上传失败。' . $filename);
|
|
|
}
|