合并分支 'lyh-server' 到 'master'
变更数据 查看合并请求 !3248
正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -237,6 +237,9 @@ class KeywordLogic extends BaseLogic | @@ -237,6 +237,9 @@ class KeywordLogic extends BaseLogic | ||
| 237 | $productModel = new Product(); | 237 | $productModel = new Product(); |
| 238 | foreach ($this->param['title'] as $v){ | 238 | foreach ($this->param['title'] as $v){ |
| 239 | $info = $this->model->read(['title'=>$v]); | 239 | $info = $this->model->read(['title'=>$v]); |
| 240 | + if($info === false){ | ||
| 241 | + $info = $this->model->read(['route'=>$v]); | ||
| 242 | + } | ||
| 240 | if($info){ | 243 | if($info){ |
| 241 | $this->delRoute($info['id']); | 244 | $this->delRoute($info['id']); |
| 242 | $this->model->del(['id'=>$info['id']]); | 245 | $this->model->del(['id'=>$info['id']]); |
-
请 注册 或 登录 后发表评论