Browse Source

no message

xingzai 1 year ago
parent
commit
5b24c6ebb0
2 changed files with 3 additions and 0 deletions
  1. 1 0
      controllers/activity.go
  2. 2 0
      utils/common.go

+ 1 - 0
controllers/activity.go

@@ -557,6 +557,7 @@ func (this *ActivityCoAntroller) Detail() {
 				br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
 				return
 			}
+			resp.Detail = services.ActivityButtonShow(activityInfo)
 			resp.PopupMsg = popupMsg
 			resp.HasPermission = hasPermission
 			resp.SellerName = sellerName

+ 2 - 0
utils/common.go

@@ -936,6 +936,8 @@ func ExtractText(body string) (result string, err error) {
 
 	return
 }
+
+// 富文本字符串截取指定长度
 func InterceptHtmlLength(body string, length int) (newbody string) {
 	content := html.UnescapeString(body)
 	doc, err := goquery.NewDocumentFromReader(strings.NewReader(content))