正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
| 3 | namespace App\Http\Logic\Bside\Product; | 3 | namespace App\Http\Logic\Bside\Product; |
| 4 | 4 | ||
| 5 | use App\Helper\Arr; | 5 | use App\Helper\Arr; |
| 6 | +use App\Helper\Common; | ||
| 6 | use App\Http\Logic\Bside\BaseLogic; | 7 | use App\Http\Logic\Bside\BaseLogic; |
| 7 | use App\Models\Product\Category; | 8 | use App\Models\Product\Category; |
| 8 | use App\Models\Product\CategoryRelated; | 9 | use App\Models\Product\CategoryRelated; |
| @@ -80,7 +81,6 @@ class ProductLogic extends BaseLogic | @@ -80,7 +81,6 @@ class ProductLogic extends BaseLogic | ||
| 80 | if(isset($this->param['keyword_id']) && !empty($this->param['keyword_id'])){ | 81 | if(isset($this->param['keyword_id']) && !empty($this->param['keyword_id'])){ |
| 81 | $this->param['keyword_id'] = $this->saveKeyword($this->param['keyword_id']); | 82 | $this->param['keyword_id'] = $this->saveKeyword($this->param['keyword_id']); |
| 82 | } | 83 | } |
| 83 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param, true) . PHP_EOL, FILE_APPEND); | ||
| 84 | $this->model->edit($this->param,['id'=>$this->param['id']]); | 84 | $this->model->edit($this->param,['id'=>$this->param['id']]); |
| 85 | return $this->success(); | 85 | return $this->success(); |
| 86 | } | 86 | } |
| @@ -107,6 +107,8 @@ class ProductLogic extends BaseLogic | @@ -107,6 +107,8 @@ class ProductLogic extends BaseLogic | ||
| 107 | $id = $keywordModel->insertGetId($param); | 107 | $id = $keywordModel->insertGetId($param); |
| 108 | $route = RouteMap::setRoute($v, RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); | 108 | $route = RouteMap::setRoute($v, RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); |
| 109 | $this->model->edit(['route'=>$route],['id'=>$id]); | 109 | $this->model->edit(['route'=>$route],['id'=>$id]); |
| 110 | + //清除缓存 | ||
| 111 | + Common::del_user_cache('product_keyword',$this->user['project_id']); | ||
| 110 | $str .= $id.','; | 112 | $str .= $id.','; |
| 111 | }else{ | 113 | }else{ |
| 112 | $str .= $info['id']; | 114 | $str .= $info['id']; |
-
请 注册 或 登录 后发表评论