|
@@ -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
|
|
|
}
|