Selaa lähdekoodia

打赏连接修改

wangkaiyue 5 vuotta sitten
vanhempi
commit
2b2d41ec95

+ 2 - 2
src/jfw/modules/subscribepay/src/service/reward.go

@@ -32,7 +32,7 @@ func (p *RewardPayAction) RedirectOauth() {
 	param := p.GetString("source") + "_" + p.GetString("id")
 	openId, _ := p.GetSession("payOpenId").(string)
 	if openId != "" {
-		p.Redirect(config.Config.WebDomain+"/weixin/reward/index?param="+param, http.StatusFound)
+		p.Redirect(config.Config.WebDomain+"/weixin/pay/index?param="+param, http.StatusFound)
 		return
 	}
 	urlstr := fmt.Sprintf(config.Wxoauth, fmt.Sprintf("%s/jypay/weixin/reward/getUserInfo?param=%s", config.Config.WebDomain, param), "1")
@@ -43,7 +43,7 @@ func (p *RewardPayAction) RedirectOauth() {
 func (p *RewardPayAction) GetUserInfo() {
 	//传入openid,进入支付页面,正常情况下应该存入session
 	p.SetSession("payOpenId", util.Getopenid(p.GetString("code")))
-	p.Redirect("/weixin/reward/index?param="+p.GetString("param"), http.StatusFound)
+	p.Redirect("/weixin/pay/index?param="+p.GetString("param"), http.StatusFound)
 }
 
 

+ 1 - 1
src/web/templates/weixin/pay.html

@@ -18,7 +18,7 @@ var interflag = true;
 calcViewport("full");
 if(signature && signature.length == 4){
 	wx.config({
-	    debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
+	    debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
 	    appId: signature[0], // 必填,公众号的唯一标识
 	    timestamp:signature[1], // 必填,生成签名的时间戳
 	    nonceStr: signature[2], // 必填,生成签名的随机串