瀏覽代碼

修复支付订单bug

kobe6258 4 月之前
父節點
當前提交
9698686be5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/merchant/user_subscription_access_list.go

+ 1 - 1
models/merchant/user_subscription_access_list.go

@@ -100,7 +100,7 @@ func SubscribeList(templateUserId int, productType string, latestId int64, offse
 }
 func GetUserSubscribeById(templateUserId int, productId int) (list UserSubscriptionAccessList, err error) {
 	db := models.Main()
-	err = db.Select("id,template_user_id,product_id,product_name,begin_date,end_date,status").Where(" template_user_id=? AND product_id=? and status=?", templateUserId, productId).First(&list).Error
+	err = db.Select("id,template_user_id,product_id,product_name,begin_date,end_date,status").Where(" template_user_id=? AND product_id=? and status=?", templateUserId, productId, SubscribeValid).First(&list).Error
 	return
 }
 func GetTotalUserPageCountByProductType(productType string, templateUserId int) (count int64, latestId int64) {