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