作者 李宇航

合并分支 'master-server' 到 'master'

Master server



查看合并请求 !1234
@@ -306,7 +306,7 @@ class DownloadProject extends Command @@ -306,7 +306,7 @@ class DownloadProject extends Command
306 } 306 }
307 $arr[] = $content4; 307 $arr[] = $content4;
308 foreach ($arr as $key => $val){ 308 foreach ($arr as $key => $val){
309 - $content .= ($key+1).','.$val; 309 + $content .= ($key+1).','.$val."/n";
310 } 310 }
311 $timestamp = strtotime('tomorrow 9:00 AM'); 311 $timestamp = strtotime('tomorrow 9:00 AM');
312 $tomorrowNineAM = date('Y-m-d H:i:s', $timestamp); 312 $tomorrowNineAM = date('Y-m-d H:i:s', $timestamp);
@@ -41,20 +41,15 @@ class ProductLogic extends BaseLogic @@ -41,20 +41,15 @@ class ProductLogic extends BaseLogic
41 * @time :2023/8/21 18:35 41 * @time :2023/8/21 18:35
42 */ 42 */
43 public function productSave(){ 43 public function productSave(){
44 - try {  
45 - if(isset($this->param['id']) && !empty($this->param['id'])){  
46 - $data = $this->editProduct();  
47 - }else{  
48 - $data = $this->addProduct();  
49 - }  
50 - CategoryRelated::saveRelated($data['id'], $this->param['category_id'] ?? []);//分类关联  
51 - KeywordRelated::saveRelated($data['id'],$this->param['keyword_id'] ?? []);//关键字关联  
52 - $this->saveExtendInfo($data['id'],$this->param['extend'] ?? []);//扩展字段  
53 - $this->saveDetail($data['id'],$this->param['detail'] ?? []);  
54 - }catch (\Exception $e){  
55 - Log::info('错误信息---'.$e->getMessage());  
56 - $this->fail('系统错误,请联系管理员'); 44 + if(isset($this->param['id']) && !empty($this->param['id'])){
  45 + $data = $this->editProduct();
  46 + }else{
  47 + $data = $this->addProduct();
57 } 48 }
  49 + CategoryRelated::saveRelated($data['id'], $this->param['category_id'] ?? []);//分类关联
  50 + KeywordRelated::saveRelated($data['id'],$this->param['keyword_id'] ?? []);//关键字关联
  51 + $this->saveExtendInfo($data['id'],$this->param['extend'] ?? []);//扩展字段
  52 + $this->saveDetail($data['id'],$this->param['detail'] ?? []);
58 $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$data['route'] ?? ''); 53 $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$data['route'] ?? '');
59 $this->curlDelRoute(['new_route'=>$data['route'] ?? '']); 54 $this->curlDelRoute(['new_route'=>$data['route'] ?? '']);
60 return $this->success(['id'=>$data['id']]); 55 return $this->success(['id'=>$data['id']]);