作者 lyh

gx数据

... ... @@ -147,11 +147,10 @@ class KeywordLogic extends BaseLogic
*/
public function first_word($title){
$first_title = mb_substr(strtolower($title), 0, 1);
$keywordModel = new Keyword();
if (is_numeric($first_title)){
return 0;
}
$string_key = array_search($first_title, $keywordModel->firstNumWord);
$string_key = array_search($first_title, $this->model->firstNumWord);
return $string_key ?: 27;
}
... ... @@ -168,7 +167,6 @@ class KeywordLogic extends BaseLogic
if(empty($v)){
continue;
}
$this->model = new Keyword();
$info = $this->model->read(['title'=>$v],['id']);
if($info === false){
$param['project_id'] = $this->user['project_id'];
... ...