소스 검색

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

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{