作者 张关杰

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate

@@ -433,8 +433,8 @@ class ProductController extends BaseController @@ -433,8 +433,8 @@ class ProductController extends BaseController
433 * @time :2023/7/29 14:59 433 * @time :2023/7/29 14:59
434 */ 434 */
435 public function copyProduct(ProductLogic $logic){ 435 public function copyProduct(ProductLogic $logic){
436 - $rs = $logic->setCopyProduct();  
437 - $this->response('success',Code::SUCCESS,$rs); 436 + $data = $logic->setCopyProduct();
  437 + $this->response('success',Code::SUCCESS,$data);
438 } 438 }
439 439
440 /** 440 /**
@@ -50,7 +50,7 @@ class BlogLogic extends BaseLogic @@ -50,7 +50,7 @@ class BlogLogic extends BaseLogic
50 DB::commit(); 50 DB::commit();
51 }catch (\Exception $e){ 51 }catch (\Exception $e){
52 DB::rollBack(); 52 DB::rollBack();
53 - $this->fail('error'); 53 + $this->fail('系统错误,请联系管理员');
54 } 54 }
55 $this->addUpdateNotify(RouteMap::SOURCE_BLOG,$route); 55 $this->addUpdateNotify(RouteMap::SOURCE_BLOG,$route);
56 $this->curlDelRoute(['new_route'=>$route]); 56 $this->curlDelRoute(['new_route'=>$route]);
@@ -47,7 +47,6 @@ class ProductLogic extends BaseLogic @@ -47,7 +47,6 @@ class ProductLogic extends BaseLogic
47 $this->param = $this->handleSaveParam($this->param); 47 $this->param = $this->handleSaveParam($this->param);
48 try { 48 try {
49 if(isset($this->param['id']) && !empty($this->param['id'])){ 49 if(isset($this->param['id']) && !empty($this->param['id'])){
50 -  
51 $is_upgrade = $this->param['is_upgrade'] ?? 0;//1:5.0数据 0:6.0 50 $is_upgrade = $this->param['is_upgrade'] ?? 0;//1:5.0数据 0:6.0
52 $six_read = $this->param['six_read'] ?? 0;//是否按6.0显示 51 $six_read = $this->param['six_read'] ?? 0;//是否按6.0显示
53 if($is_upgrade == 0 || $six_read == 1){ 52 if($is_upgrade == 0 || $six_read == 1){
@@ -442,7 +441,7 @@ class ProductLogic extends BaseLogic @@ -442,7 +441,7 @@ class ProductLogic extends BaseLogic
442 $this->model->edit(['route'=>$route],['id'=>$save_id]); 441 $this->model->edit(['route'=>$route],['id'=>$save_id]);
443 //同步可视化装修数据 442 //同步可视化装修数据
444 $this->copyTemplate($this->param['id'],$info['project_id'],$save_id); 443 $this->copyTemplate($this->param['id'],$info['project_id'],$save_id);
445 - return $this->success(); 444 + return $this->success(['id'=>$save_id]);
446 } 445 }
447 446
448 /** 447 /**