作者 张关杰

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

@@ -165,7 +165,7 @@ class ImageController extends Controller @@ -165,7 +165,7 @@ class ImageController extends Controller
165 if ($rs === false) { 165 if ($rs === false) {
166 return $this->response('添加失败', Code::USER_ERROR); 166 return $this->response('添加失败', Code::USER_ERROR);
167 } 167 }
168 - return $this->uploadCos($this->path,$files->getClientOriginalExtension()); 168 + return $this->uploadCos($this->path,$fileName);
169 return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]); 169 return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]);
170 } 170 }
171 171
@@ -327,8 +327,8 @@ class ImageController extends Controller @@ -327,8 +327,8 @@ class ImageController extends Controller
327 * @method :post 327 * @method :post
328 * @time :2023/7/18 17:38 328 * @time :2023/7/18 17:38
329 */ 329 */
330 - public function uploadCos($path,$image_type){ 330 + public function uploadCos($path,$fileName){
331 $txCos = new TencentCosService(); 331 $txCos = new TencentCosService();
332 - return $txCos->upload_image($path,$image_type); 332 + return $txCos->upload_image($path,$fileName);
333 } 333 }
334 } 334 }