|
@@ -56,7 +56,6 @@ func GetDocQuery(userId, keyWord, tag string, pageNum, pageSize int64, sort stri
|
|
|
sortArr = append(sortArr, "-uploadDate")
|
|
|
}
|
|
|
param.Sort = sortArr
|
|
|
-
|
|
|
resp, err := jyStdDocStdlib.DocQuery(context.Background(), param)
|
|
|
if err != nil {
|
|
|
log.Printf("%s SetUserCollect call error %v\n", userId, err)
|
|
@@ -66,11 +65,6 @@ func GetDocQuery(userId, keyWord, tag string, pageNum, pageSize int64, sort stri
|
|
|
log.Printf("%s SetUserCollect fail Message %v\n", userId, resp.Msg)
|
|
|
return nil, -1, fmt.Errorf("查询失败")
|
|
|
}
|
|
|
- for _, v := range resp.Docs {
|
|
|
- if v.PreviewImgId != "" {
|
|
|
- v.PreviewImgId = fmt.Sprintf("https://%s.%s/%s", config.JyDocsAppConfig.OssBucket.Priv, config.JyDocsAppConfig.OssAdmin, v.PreviewImgId)
|
|
|
- }
|
|
|
- }
|
|
|
return resp.Docs, resp.Total, nil
|
|
|
}
|
|
|
|