|
@@ -36,7 +36,7 @@ class ImageController extends Controller |
|
@@ -36,7 +36,7 @@ class ImageController extends Controller |
|
36
|
|
36
|
|
|
37
|
|
37
|
|
|
38
|
|
38
|
|
|
39
|
- public $upload_location = 1;//是否同步到cos
|
39
|
+ public $upload_location = 0;//同步到cos
|
|
40
|
//上传图片类型
|
40
|
//上传图片类型
|
|
41
|
public $image_type = [
|
41
|
public $image_type = [
|
|
42
|
1 => 'image_product',
|
42
|
1 => 'image_product',
|
|
@@ -225,7 +225,7 @@ class ImageController extends Controller |
|
@@ -225,7 +225,7 @@ class ImageController extends Controller |
|
225
|
'hash' => $hash,
|
225
|
'hash' => $hash,
|
|
226
|
'type'=>$image_type,
|
226
|
'type'=>$image_type,
|
|
227
|
'refer'=>$this->param['refer'] ?? 0,
|
227
|
'refer'=>$this->param['refer'] ?? 0,
|
|
228
|
- 'is_cos'=>$is_cos,
|
228
|
+ 'is_cos'=>($is_cos == 0) ? 1 : 0,
|
|
229
|
'mime'=>$mime,
|
229
|
'mime'=>$mime,
|
|
230
|
'project_id'=>$this->cache['project_id'] ?? 0,
|
230
|
'project_id'=>$this->cache['project_id'] ?? 0,
|
|
231
|
'name'=>$name,
|
231
|
'name'=>$name,
|