浏览代码

二次拆分找到中文意思同时判断长度不能太长

visuddhinanda 5 年之前
父节点
当前提交
a07d869769
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/dict/turbo_split.php

+ 1 - 1
app/dict/turbo_split.php

@@ -607,7 +607,7 @@ function split2($word){
 		}
 		if(mb_strlen($word,"UTF-8")>4){
 		# 先看有没有中文意思
-			if($redis->hExists("dict://ref/has_mean",$word)===TRUE){
+			if($redis->hExists("dict://ref/has_mean",$word)===TRUE && mb_strlen($word,"UTF-8")<7){
 				$newword[]=$word;
 			}
 			else{