k.zhang 1 năm trước cách đây
mục cha
commit
67fb0984a0
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      apis/shanghu/merchant.card.go

+ 5 - 0
apis/shanghu/merchant.card.go

@@ -249,6 +249,11 @@ func GetMerchantCanvasCard(c *gin.Context) {
 		return
 	}
 
+	if merchantCard.ActivityEndTime <= time.Now().Unix() {
+		app.Error(c, 500, errors.New("活动已结束"), "活动已结束")
+		return
+	}
+
 	outData.Static.Background = "/images/背景.jpg"
 	var swiperList []models.SwiperList
 	var rightButton models.RightButton