hsun 2 years ago
parent
commit
a1aa60211f
2 changed files with 7 additions and 4 deletions
  1. 4 3
      services/wx_app/wx_app.go
  2. 3 1
      utils/constants.go

+ 4 - 3
services/wx_app/wx_app.go

@@ -13,6 +13,7 @@ import (
 	"hongze/hongze_yb/global"
 	"hongze/hongze_yb/models/tables/yb_config"
 	"hongze/hongze_yb/services/wx_app/security"
+	"hongze/hongze_yb/utils"
 )
 
 //微信小程序配置信息
@@ -115,7 +116,7 @@ type WxAppConf struct {
 	WxId        string `description:"微信原始ID"`
 	WxAppId     string
 	WxAppSecret string
-	WxPlatform  int `description:"app来源: 6-研报小程序; 7-研报备用小程序"`
+	WxPlatform  int `description:"app来源: 6-研报小程序; 9-研报备用小程序"`
 }
 
 // GetWxAppConf 获取小程序配置
@@ -130,13 +131,13 @@ func GetWxAppConf() (appConf *WxAppConf, err error) {
 		WxId:        `wxb059c872d79b9967`,
 		WxAppId:     `gh_75abb562a946`,
 		WxAppSecret: `1737c73e9f69a21de1a345b8f0800258`,
-		WxPlatform:  6,
+		WxPlatform:  utils.USER_RECORD_PLATFORM_YB,
 	}
 	if conf.ConfigValue == "true" {
 		// 备用小程序
 		appConf.WxAppId = `wx9a2a9b49a00513a0`
 		appConf.WxAppSecret = `9feb793bd0a8756990a36ac2ade6978c`
-		appConf.WxPlatform = 7
+		appConf.WxPlatform = utils.USER_RECORD_PLATFORM_COPY_YB
 	}
 	return
 }

+ 3 - 1
utils/constants.go

@@ -158,7 +158,9 @@ const (
 	USER_RECORD_PLATFORM_CYGX                 // 查研观向小程序
 	_
 	USER_RECORD_PLATFORM_YB      // 研报小程序-6
-	USER_RECORD_PLATFORM_COPY_YB // 研报备用小程序-7
+	_                            // 查研观向开发平台-7
+	_                            // 查研观向小助手公众号-8
+	USER_RECORD_PLATFORM_COPY_YB // 研报备用小程序-9
 )
 
 const (