作者 lyh

gx

... ... @@ -107,7 +107,8 @@ class KeywordLogic extends BaseLogic
public function batchAdd(){
if(!empty($this->param['title']) && is_array($this->param['title'])){
foreach ($this->param['title'] as $v){
$info = $this->model->read(['title'=>$v]);
$newStr = str_replace(' ', '-', $v);
$info = $this->model->read(['title'=>$newStr]);
if($info === false){
$param['project_id'] = $this->user['project_id'];
$param['created_at'] = date('Y-m-d H:i:s');
... ...