|
...
|
...
|
@@ -55,14 +55,8 @@ class KeywordLogic extends BaseLogic |
|
|
|
// DB::beginTransaction();
|
|
|
|
// try {
|
|
|
|
$this->param = $this->handleSaveParam($this->param);
|
|
|
|
if($this->user['project_id'] == 91){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('start:', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
if($this->user['project_id'] == 91){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(11111, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
}
|
|
|
|
//TODO::不能修改路由
|
|
|
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
$route = RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD,$this->param['id'], $this->user['project_id']);
|
|
...
|
...
|
@@ -80,8 +74,8 @@ class KeywordLogic extends BaseLogic |
|
|
|
// DB::rollBack();
|
|
|
|
// $this->fail('保存失败');
|
|
|
|
// }
|
|
|
|
$this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route);
|
|
|
|
$this->curlDelRoute(['new_route'=>$route]);
|
|
|
|
// $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route);
|
|
|
|
// $this->curlDelRoute(['new_route'=>$route]);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|