- add changePriceType to model.Store

- send weixin msg when op request handled.
This commit is contained in:
gazebo
2018-12-24 11:59:29 +08:00
parent c26ac82d72
commit dffa68612e
5 changed files with 148 additions and 38 deletions

View File

@@ -50,6 +50,10 @@ func Init() {
}
if !beego.AppConfig.DefaultBool("disableWeixin", false) {
WeixinAPI = weixinapi.New(beego.AppConfig.String("weixinAppID"), beego.AppConfig.String("weixinSecret"))
// 这个主要是用于调试阶段使用,生产环境中用的是自动刷新那套
if weixinToken := beego.AppConfig.DefaultString("weixinToken", ""); weixinToken != "" {
WeixinAPI.SetToken(weixinToken)
}
}
AutonaviAPI = autonavi.New(beego.AppConfig.String("autonaviKey"))
QiniuAPI = qbox.NewMac(beego.AppConfig.String("qiniuAK"), beego.AppConfig.String("qiniuSK"))