作者 yangfu

二维码

... ... @@ -40,3 +40,4 @@ ApiAuth:
Wechat:
AppID: wxae5b305849343ec8
AppSecret: f584adb68f7d784425b60e1ebb2ffd4b
QrcodeEnv: "develop"
\ No newline at end of file
... ...
... ... @@ -56,7 +56,7 @@ func (l *MiniQrcodeInviteLogic) MiniQrcodeInvite(req *types.MiniQrCodeRequest) (
Path: req.Page,
Scene: req.Scene,
CheckPath: lo.ToPtr(false),
EnvVersion: "release",
EnvVersion: l.svcCtx.Config.Wechat.QrcodeEnv,
})
if err != nil {
return nil, xerr.NewErr(err)
... ...
... ... @@ -72,6 +72,7 @@ type Wechat struct {
AppName string `json:",optional"`
AppID string
AppSecret string
QrcodeEnv string `json:",optional,default=release"`
MsgTemplates []Template `json:",optional"`
}
... ...