浏览代码

绑定过手机号处理

WH01243 4 月之前
父节点
当前提交
867a40b2a9
共有 1 个文件被更改,包括 1 次插入20 次删除
  1. 1 20
      src/jfw/front/singleLogin.go

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

@@ -46,8 +46,6 @@ const (
 func (this *SingleLogin) VipGiftUrl(key string) error {
 	var redirectUrl = ""
 	isSubscribe := false
-	isBinding := false
-	isSame := false
 	chatIdInt := gconv.Int64(encrypt.SE.Decode4HexByCheck(key))
 	isWxB := public.CheckWxBrowser(this.Request)
 	sess := this.Session().GetMultiple()
@@ -80,25 +78,8 @@ func (this *SingleLogin) VipGiftUrl(key string) error {
 			//没有关注  跳转关注页面
 		} else {
 			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 {
 		redirectUrl = "/swordfish/about"
 	}