|
@@ -112,7 +112,10 @@ func MemberCenterGetBasic(c *gin.Context) { |
|
|
eggEnergyValue := nowPrice.Mul(decimal.NewFromFloat(eggEnergy)) |
|
|
eggEnergyValue := nowPrice.Mul(decimal.NewFromFloat(eggEnergy)) |
|
|
|
|
|
|
|
|
// 5. 查询蛋蛋分 |
|
|
// 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) |
|
|
esIndexName := es2.GetLatestEffectiveIndexFromAlias(now) |
|
|
// 构建查询条件 |
|
|
// 构建查询条件 |
|
|
boolQuery := elastic.NewBoolQuery() |
|
|
boolQuery := elastic.NewBoolQuery() |
|
|