作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -142,14 +142,10 @@ class FileController @@ -142,14 +142,10 @@ class FileController
142 * @time :2024/4/8 11:10 142 * @time :2024/4/8 11:10
143 */ 143 */
144 public function synchronizationFile($file_type,$fileName){ 144 public function synchronizationFile($file_type,$fileName){
145 - $fileTypeArr = ['zip', 'pdf', 'mp4', 'doc', 'docx', 'm4v', 'xlsx'];  
146 - if(in_array($file_type,$fileTypeArr)){  
147 - //同步到大文件  
148 - $file_path = getFileUrl($this->path.'/'.$fileName,$this->cache['storage_type'] ?? 0);  
149 - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->path.'" https://v6-file.globalso.com/upload.php';  
150 - shell_exec($cmd);  
151 - }  
152 - return true; 145 + //同步到大文件
  146 + $file_path = getFileUrl($this->path.'/'.$fileName,$this->cache['storage_type'] ?? 0);
  147 + $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->path.'" https://v6-file.globalso.com/upload.php';
  148 + shell_exec($cmd);
153 } 149 }
154 150
155 /** 151 /**
@@ -518,8 +518,6 @@ class ProductLogic extends BaseLogic @@ -518,8 +518,6 @@ class ProductLogic extends BaseLogic
518 'created_uid'=>$this->user['id'], 518 'created_uid'=>$this->user['id'],
519 'created_at'=>date('Y-m-d H:i:s'), 519 'created_at'=>date('Y-m-d H:i:s'),
520 'updated_at'=>date('Y-m-d H:i:s'), 520 'updated_at'=>date('Y-m-d H:i:s'),
521 - 'six_read'=>$info['six_read'],  
522 - 'is_upgrade'=>$info['is_upgrade']  
523 ]; 521 ];
524 if(isset($info['icon']) && !empty($info['icon'])){ 522 if(isset($info['icon']) && !empty($info['icon'])){
525 foreach ($info['icon'] as $k1 => $v1){ 523 foreach ($info['icon'] as $k1 => $v1){
@@ -13,8 +13,6 @@ use Illuminate\Database\Eloquent\SoftDeletes; @@ -13,8 +13,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
13 */ 13 */
14 class Category extends Base 14 class Category extends Base
15 { 15 {
16 - use SoftDeletes;  
17 -  
18 //设置关联表名 16 //设置关联表名
19 protected $table = 'gl_product_category'; 17 protected $table = 'gl_product_category';
20 //连接数据库 18 //连接数据库