|
@@ -51,7 +51,7 @@ func (this *SingleLogin) VipGiftUrl(key string) error {
|
|
sess := this.Session().GetMultiple()
|
|
sess := this.Session().GetMultiple()
|
|
userId, _ := sess["userId"].(string)
|
|
userId, _ := sess["userId"].(string)
|
|
openid := ""
|
|
openid := ""
|
|
- fmt.Println("1111", key, chatIdInt, isWxB, userId, this.GetString("state"))
|
|
|
|
|
|
+ log.Println("1111", key, chatIdInt, isWxB, userId, this.GetString("state"))
|
|
if isWxB && userId == "" {
|
|
if isWxB && userId == "" {
|
|
if this.GetString("state") == "wx" {
|
|
if this.GetString("state") == "wx" {
|
|
//微信跳回来的
|
|
//微信跳回来的
|
|
@@ -69,7 +69,7 @@ func (this *SingleLogin) VipGiftUrl(key string) error {
|
|
log.Println(fmt.Sprintf(config.Wxoauth, url.QueryEscape(this.Site()+this.Url()), "wx"))
|
|
log.Println(fmt.Sprintf(config.Wxoauth, url.QueryEscape(this.Site()+this.Url()), "wx"))
|
|
return this.Redirect(fmt.Sprintf(config.Wxoauth, url.QueryEscape(this.Site()+this.Url()), "wx"), 302)
|
|
return this.Redirect(fmt.Sprintf(config.Wxoauth, url.QueryEscape(this.Site()+this.Url()), "wx"), 302)
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }CD
|
|
if key != "" && chatIdInt > 0 {
|
|
if key != "" && chatIdInt > 0 {
|
|
openid = qutil.InterfaceToStr(this.GetSession("s_m_openid"))
|
|
openid = qutil.InterfaceToStr(this.GetSession("s_m_openid"))
|
|
//查看是否关注公众号
|
|
//查看是否关注公众号
|