作者 lyh

gx

@@ -196,7 +196,7 @@ class FileController @@ -196,7 +196,7 @@ class FileController
196 'hash' => $hash, 196 'hash' => $hash,
197 'type'=>$image_type, 197 'type'=>$image_type,
198 'refer'=>$this->param['refer'] ?? 1, 198 'refer'=>$this->param['refer'] ?? 1,
199 - 'is_cos'=>$is_cos, 199 + 'is_cos'=>($is_cos == 0) ? 1 : 0,
200 'mime'=>$mime, 200 'mime'=>$mime,
201 'project_id'=>$this->cache['project_id'] ?? 0, 201 'project_id'=>$this->cache['project_id'] ?? 0,
202 'name'=>$name, 202 'name'=>$name,
@@ -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,