作者 lyh

gx

... ... @@ -196,7 +196,7 @@ class FileController
'hash' => $hash,
'type'=>$image_type,
'refer'=>$this->param['refer'] ?? 1,
'is_cos'=>$is_cos,
'is_cos'=>($is_cos == 0) ? 1 : 0,
'mime'=>$mime,
'project_id'=>$this->cache['project_id'] ?? 0,
'name'=>$name,
... ...
... ... @@ -36,7 +36,7 @@ class ImageController extends Controller
public $upload_location = 1;//是否同步到cos
public $upload_location = 0;//同步到cos
//上传图片类型
public $image_type = [
1 => 'image_product',
... ... @@ -225,7 +225,7 @@ class ImageController extends Controller
'hash' => $hash,
'type'=>$image_type,
'refer'=>$this->param['refer'] ?? 0,
'is_cos'=>$is_cos,
'is_cos'=>($is_cos == 0) ? 1 : 0,
'mime'=>$mime,
'project_id'=>$this->cache['project_id'] ?? 0,
'name'=>$name,
... ...