浏览代码

feat:正文截取

wangchuanjin 10 月之前
父节点
当前提交
6d3fa225de
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jyBXSubscribe/rpc/model/push.go

+ 1 - 1
jyBXSubscribe/rpc/model/push.go

@@ -318,7 +318,7 @@ func (s *subscribePush) subStrDetail(matchKey, detail string) string {
 	if len([]rune(detail)) > 200 {
 		detail = string([]rune(detail)[:200])
 	}
-	return detail
+	return strings.TrimSpace(detail)
 }
 func (s *subscribePush) Datas(spqp *SubPushQueryParam, bsp *ViewCondition) (hasNextPage bool, total int64, result []*bxsubscribe.SubscribeInfo) {
 	logx.Info(spqp.UserId, spqp.NewUserId, s.ModuleFlag, "subscribePush query param:", "SelectTime:", spqp.SelectTime, "Area:", spqp.Area, "District:", spqp.District, "City:", spqp.City, "Subtype:", spqp.Subtype, "Subscopeclass:", spqp.Subscopeclass, "Buyerclass:", spqp.Buyerclass, "Key:", spqp.Key, "PageNum:", spqp.PageNum, "Price:", spqp.Price, "FileExists:", spqp.FileExists)