浏览代码

no message

xingzai 10 月之前
父节点
当前提交
7f10c6c47f
共有 1 个文件被更改,包括 7 次插入0 次删除
  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 {