作者 lyh

gxai

@@ -156,7 +156,7 @@ class Keyword extends Base @@ -156,7 +156,7 @@ class Keyword extends Base
156 if(empty($v)){ 156 if(empty($v)){
157 continue; 157 continue;
158 } 158 }
159 - $info = $this->read(['title'=>$v],['id']); 159 + $info = $this->read(['title'=>trim($v)],['id']);
160 if($info == false){ 160 if($info == false){
161 $param['project_id'] = $project_id; 161 $param['project_id'] = $project_id;
162 $param['title'] = $v; 162 $param['title'] = $v;