作者 lyh

gx

@@ -55,14 +55,8 @@ class KeywordLogic extends BaseLogic @@ -55,14 +55,8 @@ class KeywordLogic extends BaseLogic
55 // DB::beginTransaction(); 55 // DB::beginTransaction();
56 // try { 56 // try {
57 $this->param = $this->handleSaveParam($this->param); 57 $this->param = $this->handleSaveParam($this->param);
58 - if($this->user['project_id'] == 91){  
59 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export('start:', true) . PHP_EOL, FILE_APPEND);  
60 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param, true) . PHP_EOL, FILE_APPEND);  
61 - } 58 +
62 if(isset($this->param['id']) && !empty($this->param['id'])){ 59 if(isset($this->param['id']) && !empty($this->param['id'])){
63 - if($this->user['project_id'] == 91){  
64 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(11111, true) . PHP_EOL, FILE_APPEND);  
65 - }  
66 //TODO::不能修改路由 60 //TODO::不能修改路由
67 $this->model->edit($this->param,['id'=>$this->param['id']]); 61 $this->model->edit($this->param,['id'=>$this->param['id']]);
68 $route = RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD,$this->param['id'], $this->user['project_id']); 62 $route = RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD,$this->param['id'], $this->user['project_id']);
@@ -80,8 +74,8 @@ class KeywordLogic extends BaseLogic @@ -80,8 +74,8 @@ class KeywordLogic extends BaseLogic
80 // DB::rollBack(); 74 // DB::rollBack();
81 // $this->fail('保存失败'); 75 // $this->fail('保存失败');
82 // } 76 // }
83 - $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route);  
84 - $this->curlDelRoute(['new_route'=>$route]); 77 +// $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route);
  78 +// $this->curlDelRoute(['new_route'=>$route]);
85 return $this->success(); 79 return $this->success();
86 } 80 }
87 81