|
@@ -46,8 +46,6 @@ const (
|
|
func (this *SingleLogin) VipGiftUrl(key string) error {
|
|
func (this *SingleLogin) VipGiftUrl(key string) error {
|
|
var redirectUrl = ""
|
|
var redirectUrl = ""
|
|
isSubscribe := false
|
|
isSubscribe := false
|
|
- isBinding := false
|
|
|
|
- isSame := false
|
|
|
|
chatIdInt := gconv.Int64(encrypt.SE.Decode4HexByCheck(key))
|
|
chatIdInt := gconv.Int64(encrypt.SE.Decode4HexByCheck(key))
|
|
isWxB := public.CheckWxBrowser(this.Request)
|
|
isWxB := public.CheckWxBrowser(this.Request)
|
|
sess := this.Session().GetMultiple()
|
|
sess := this.Session().GetMultiple()
|
|
@@ -80,25 +78,8 @@ func (this *SingleLogin) VipGiftUrl(key string) error {
|
|
//没有关注 跳转关注页面
|
|
//没有关注 跳转关注页面
|
|
} else {
|
|
} else {
|
|
isSubscribe = true
|
|
isSubscribe = true
|
|
- //判断是否绑定手机号
|
|
|
|
- phone := qutil.InterfaceToStr(this.GetSession("phone"))
|
|
|
|
- if phone == "" {
|
|
|
|
- //没有绑定手机号
|
|
|
|
- } else {
|
|
|
|
- isBinding = true
|
|
|
|
- //绑定手机号
|
|
|
|
- chatIdInt := gconv.Int64(encrypt.SE.Decode4HexByCheck(key))
|
|
|
|
- data := public.Mysql.SelectBySql(`select recipientUserPhone from vip_gift_records where id =? `, chatIdInt)
|
|
|
|
- if data != nil || len(*data) > 0 {
|
|
|
|
- recipientUserPhone := gconv.String((*data)[0]["recipientUserPhone"])
|
|
|
|
- log.Println("1111", recipientUserPhone, "222222222222", phone)
|
|
|
|
- if recipientUserPhone == phone {
|
|
|
|
- isSame = true
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
- redirectUrl = fmt.Sprintf("/jy_mobile/giving/share?isSubscribe=%v&isBinding=%v&isSame=%v&giftId=%s", isSubscribe, isBinding, isSame, key)
|
|
|
|
|
|
+ redirectUrl = fmt.Sprintf("/jy_mobile/giving/share?isSubscribe=%v&giftId=%s", isSubscribe, key)
|
|
} else {
|
|
} else {
|
|
redirectUrl = "/swordfish/about"
|
|
redirectUrl = "/swordfish/about"
|
|
}
|
|
}
|