fix: 优化获取热门标签错误提示语
This commit is contained in:
parent
5bee5bf5aa
commit
d5a81f5c74
@ -379,6 +379,7 @@ func RecommendHashtags(ctx *gin.Context) {
|
|||||||
req.ProfileKey = profileKey
|
req.ProfileKey = profileKey
|
||||||
resp, err := service.AyrshareProvider.RecommendHashtags(context.Background(), req)
|
resp, err := service.AyrshareProvider.RecommendHashtags(context.Background(), req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
fmt.Println("err", err)
|
||||||
zap.L().Error("RecommendHashtags failed", zap.Error(err))
|
zap.L().Error("RecommendHashtags failed", zap.Error(err))
|
||||||
err = errors.New("推荐标签失败")
|
err = errors.New("推荐标签失败")
|
||||||
service.Error(ctx, err)
|
service.Error(ctx, err)
|
||||||
@ -404,6 +405,8 @@ func SearchHashtags(ctx *gin.Context) {
|
|||||||
req.ProfileKey = profileKey
|
req.ProfileKey = profileKey
|
||||||
resp, err := service.AyrshareProvider.SearchHashtags(context.Background(), req)
|
resp, err := service.AyrshareProvider.SearchHashtags(context.Background(), req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
fmt.Println("err", err)
|
||||||
|
err = errors.New("获取热门话题标签失败")
|
||||||
zap.L().Error("SearchHashtags failed", zap.Error(err))
|
zap.L().Error("SearchHashtags failed", zap.Error(err))
|
||||||
service.Error(ctx, err)
|
service.Error(ctx, err)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user