Răsfoiți Sursa

Merge branch 'cygx_13.8' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 6 luni în urmă
părinte
comite
d019bc434b
3 a modificat fișierele cu 4 adăugiri și 3 ștergeri
  1. 1 1
      controllers/user.go
  2. 2 1
      services/config.go
  3. 1 1
      services/ficc_report.go

+ 1 - 1
controllers/user.go

@@ -1060,7 +1060,7 @@ func (this *UserController) ApplyTryOut() {
 		}
 
 	} else if tryType == utils.CYGX_OBJ_FICC_REPORT_XCX {
-		// 研选专栏
+		// FICC研报小程序弹窗
 		title = "周期股语音播报"
 		source = utils.CYGX_OBJ_FICC_REPORT_XCX
 	}

+ 2 - 1
services/config.go

@@ -5,6 +5,7 @@ import (
 	"fmt"
 	"hongze/hongze_cygx/models"
 	"hongze/hongze_cygx/utils"
+	"html"
 	"strconv"
 	"strings"
 	"time"
@@ -148,6 +149,6 @@ func GetConfigCodeDisclaimer() (configValue string) {
 		err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
 		return
 	}
-	configValue = cnf.ConfigValue
+	configValue = html.UnescapeString(cnf.ConfigValue)
 	return
 }

+ 1 - 1
services/ficc_report.go

@@ -583,7 +583,7 @@ func GetFiccReportXcxItem(user *models.WxUserItem) (itemSourceResp *models.CygxR
 	var hasPermission int
 	var e error
 	if hasPersion {
-		itemResp.HasPermission = 1
+		hasPermission = 1
 	} else {
 		itemResp.HasPermission, itemResp.SellerName, itemResp.SellerMobile, _, err = GetUserHasPermissionArticle(user)
 		if err != nil {