Browse Source

no message

xingzai 9 months ago
parent
commit
7f10c6c47f
1 changed files with 7 additions and 0 deletions
  1. 7 0
      services/cygx_yanxuan_special.go

+ 7 - 0
services/cygx_yanxuan_special.go

@@ -559,6 +559,13 @@ func GetYanxuanSpecialDetailUserPower(user *models.WxUserItem) (havePower bool,
 		return
 	}
 
+	//用户是否持有有效卡片
+	userCardTotal := GetCygxOrderUserCardTotal(user.Mobile)
+	if userCardTotal == 1 {
+		havePower = true
+		return
+	}
+
 	//是否是权益客户
 	raiCount, e := models.GetCompanyProductCount(companyId, utils.COMPANY_PRODUCT_RAI_ID)
 	if e != nil {