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