|
@@ -167,7 +167,7 @@ class ImageController extends Controller |
|
@@ -167,7 +167,7 @@ class ImageController extends Controller |
|
167
|
return $this->response('添加失败', Code::USER_ERROR);
|
167
|
return $this->response('添加失败', Code::USER_ERROR);
|
|
168
|
}
|
168
|
}
|
|
169
|
$cosService = new CosService();
|
169
|
$cosService = new CosService();
|
|
170
|
- $cosService->uploadFile($files,$this->path,$fileName);
|
170
|
+ $cosService->uploadFile($this->path,$fileName);
|
|
171
|
return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]);
|
171
|
return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]);
|
|
172
|
}
|
172
|
}
|
|
173
|
|
173
|
|