Browse Source

Merge branch 'dev2.8.5' of http://192.168.3.207:10080/qmx/jy into dev2.8.5

xuzhiheng 5 years ago
parent
commit
933d04d87a

+ 1 - 1
src/jfw/front/front.go

@@ -136,7 +136,7 @@ type Front struct {
 	//数据服务页面
 	dataService xweb.Mapper `xweb:"/front/dataService.html"`
 	//打赏页面
-	payIndex xweb.Mapper `xweb:"/weixin/reward/index"` //微信支付页面
+	payIndex xweb.Mapper `xweb:"/weixin/pay/index"` //微信打赏
 	//订阅付费消息提醒中转
 	msgremind xweb.Mapper `xweb:"/front/vipsubscribe/msgremind"`
 }

+ 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], // 必填,生成签名的随机串