瀏覽代碼

Merge branch 'feature/v1.0.1_fu' of moapp/jy_docs into feature/v1.0.1

fuwencai 1 年之前
父節點
當前提交
0fd24ebff6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      services/stdlib/docService.go

+ 2 - 2
services/stdlib/docService.go

@@ -111,13 +111,13 @@ func DocQuery(in *stdlib.DocQueryRequest) *stdlib.DocQueryResponse {
 			tmptags := []string{}
 			subTag := ""
 			for i := 0; i < len(tags); i++ {
-				dtpKey := fmt.Sprintf("p_%s_0_tag", tags[i]) //一级tag
+				dtpKey := fmt.Sprintf("p_%s_1_tag", tags[i]) //一级tag
 				if _, ok := partner.DocClassMap[dtpKey]; ok && len(tmptags) == 0 {
 					tmptags = append(tmptags, tags[i])
 				} else {
 					subTag = tags[i]
 				}
-				if subTag != "" && len(tags) > 0 {
+				if subTag != "" && len(tmptags) > 0 {
 					tmptags = append(tmptags, subTag)
 					break
 				}