From 0549fbd83fd11d9150c4e03492cf9ba3e9bbe164 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 27 Nov 2024 16:53:15 +0800 Subject: [PATCH] update --- app/hdl/hdl_member_center.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/hdl/hdl_member_center.go b/app/hdl/hdl_member_center.go index c1b88bf..56c363d 100644 --- a/app/hdl/hdl_member_center.go +++ b/app/hdl/hdl_member_center.go @@ -112,7 +112,10 @@ func MemberCenterGetBasic(c *gin.Context) { eggEnergyValue := nowPrice.Mul(decimal.NewFromFloat(eggEnergy)) // 5. 查询蛋蛋分 - now := time.Now() + // now := time.Now() + // todo 暂时使用有数据的时间 + location, _ := time.LoadLocation("Asia/Shanghai") + now := time.Date(2024, 11, 20, 16, 44, 0, 0, location) esIndexName := es2.GetLatestEffectiveIndexFromAlias(now) // 构建查询条件 boolQuery := elastic.NewBoolQuery()