|
@@ -107,7 +107,7 @@ func DocQuery(in *stdlib.DocQueryRequest) *stdlib.DocQueryResponse {
|
|
|
}
|
|
|
}
|
|
|
for _, v := range *list {
|
|
|
- tags := strings.Split(common.ObjToString(v["docTags"]), "")
|
|
|
+ tags := strings.Split(common.ObjToString(v["docTags"]), ",")
|
|
|
tmptags := []string{}
|
|
|
subTag := ""
|
|
|
for i := 0; i < len(tags); i++ {
|
|
@@ -132,7 +132,7 @@ func DocQuery(in *stdlib.DocQueryRequest) *stdlib.DocQueryResponse {
|
|
|
UploadDate: common.ObjToString(v["uploadDate"]),
|
|
|
DocSummary: common.ObjToString(v["docSummary"]),
|
|
|
DocFileType: model.DocFileType[common.IntAll(v["docFileType"])],
|
|
|
- PreviewImgId: common.ObjToString(v["previewImgId"]),
|
|
|
+ PreviewImgId: common.InterfaceToStr(v["previewImgId"]),
|
|
|
ProductType: common.Int64All(v["productType"]),
|
|
|
Source: common.Int64All(v["source"]),
|
|
|
DocTags: strings.Join(tmptags, ","),
|