|
|
@@ -70,19 +70,21 @@ export async function GetMiaoguoAISearch(ctx) {
|
|
70
|
70
|
}
|
|
71
|
71
|
}
|
|
72
|
72
|
|
|
73
|
|
- let bExistZici=false;
|
|
74
|
|
- for(let i=0;i<literacyItem.length;i++){
|
|
75
|
|
- if (literacyItem[i].SearchType=="zici"){
|
|
76
|
|
- bExistZici=true;
|
|
77
|
|
- break;
|
|
|
73
|
+ if (param.SearchType=="list"){
|
|
|
74
|
+ let bExistZici=false;
|
|
|
75
|
+ for(let i=0;i<result.List.length;i++){
|
|
|
76
|
+ if (result.List[i].SearchType=="zici"){
|
|
|
77
|
+ bExistZici=true;
|
|
|
78
|
+ break;
|
|
|
79
|
+ }
|
|
|
80
|
+ }
|
|
|
81
|
+ if (stringUtils.IsChinese(param.Word) && param.Word.length>=2 && !bExistZici) {
|
|
|
82
|
+ let obj={};
|
|
|
83
|
+ obj.Type="zici";
|
|
|
84
|
+ obj.Key=param.Word;
|
|
|
85
|
+ obj.TypeName="字词";
|
|
|
86
|
+ result.List.unshift(obj);
|
|
78
|
87
|
}
|
|
79
|
|
- }
|
|
80
|
|
- if (param.SearchType=="list" && stringUtils.IsChinese(param.Word) && param.Word.length>=2 && !bExistZici) {
|
|
81
|
|
- let obj={};
|
|
82
|
|
- obj.Type="zici";
|
|
83
|
|
- obj.Key=param.Word;
|
|
84
|
|
- obj.TypeName="字词";
|
|
85
|
|
- result.List.push(obj);
|
|
86
|
88
|
}
|
|
87
|
89
|
|
|
88
|
90
|
if (param.SearchType!="list"){
|