作者 lyh

gx

@@ -167,7 +167,7 @@ class KeywordLogic extends BaseLogic @@ -167,7 +167,7 @@ class KeywordLogic extends BaseLogic
167 foreach ($ids as $id){ 167 foreach ($ids as $id){
168 $productModel->where('keyword_id', 'like', '%,' . $id . ',%') 168 $productModel->where('keyword_id', 'like', '%,' . $id . ',%')
169 ->update([ 169 ->update([
170 - 'email' => DB::raw("REPLACE(keyword_id, '%,' . $id . ',%', ',')") 170 + 'email' => DB::raw("REPLACE(keyword_id, ',' . $id . ',', ',')")
171 ]); 171 ]);
172 $this->delRoute($id); 172 $this->delRoute($id);
173 $this->model->del(['id'=>$id]); 173 $this->model->del(['id'=>$id]);