作者 yangfu

二维码

@@ -40,3 +40,4 @@ ApiAuth: @@ -40,3 +40,4 @@ ApiAuth:
40 Wechat: 40 Wechat:
41 AppID: wxae5b305849343ec8 41 AppID: wxae5b305849343ec8
42 AppSecret: f584adb68f7d784425b60e1ebb2ffd4b 42 AppSecret: f584adb68f7d784425b60e1ebb2ffd4b
  43 + QrcodeEnv: "develop"
@@ -56,7 +56,7 @@ func (l *MiniQrcodeInviteLogic) MiniQrcodeInvite(req *types.MiniQrCodeRequest) ( @@ -56,7 +56,7 @@ func (l *MiniQrcodeInviteLogic) MiniQrcodeInvite(req *types.MiniQrCodeRequest) (
56 Path: req.Page, 56 Path: req.Page,
57 Scene: req.Scene, 57 Scene: req.Scene,
58 CheckPath: lo.ToPtr(false), 58 CheckPath: lo.ToPtr(false),
59 - EnvVersion: "release", 59 + EnvVersion: l.svcCtx.Config.Wechat.QrcodeEnv,
60 }) 60 })
61 if err != nil { 61 if err != nil {
62 return nil, xerr.NewErr(err) 62 return nil, xerr.NewErr(err)
@@ -72,6 +72,7 @@ type Wechat struct { @@ -72,6 +72,7 @@ type Wechat struct {
72 AppName string `json:",optional"` 72 AppName string `json:",optional"`
73 AppID string 73 AppID string
74 AppSecret string 74 AppSecret string
  75 + QrcodeEnv string `json:",optional,default=release"`
75 MsgTemplates []Template `json:",optional"` 76 MsgTemplates []Template `json:",optional"`
76 } 77 }
77 78