|
|
|
@ -120,7 +120,7 @@ func GetFirstShowData() values.ShowInfo { |
|
|
|
pipeline.HSet(ctx, withdrawalKey, "total_withdrawal", withdrawal) |
|
|
|
pipeline.HSet(ctx, withdrawalKey, "total_withdrawal", withdrawal) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
elapsed := int(now.Sub(startTime).Hours()) |
|
|
|
elapsed := int(now.Sub(startTime).Hours()) |
|
|
|
withdrawal = int64(elapsed * (999*10 + 1000)) |
|
|
|
withdrawal += int64(elapsed * (999*10 + 1000)) |
|
|
|
pipeline.HSet(ctx, withdrawalKey, "total_withdrawal", withdrawal) |
|
|
|
pipeline.HSet(ctx, withdrawalKey, "total_withdrawal", withdrawal) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -148,8 +148,8 @@ func GetFirstShowData() values.ShowInfo { |
|
|
|
pipeline.HSet(ctx, maxBetKey, "start_time", maxBetStartTime) |
|
|
|
pipeline.HSet(ctx, maxBetKey, "start_time", maxBetStartTime) |
|
|
|
pipeline.HSet(ctx, maxBetKey, "max_bet_amount", maxBet) |
|
|
|
pipeline.HSet(ctx, maxBetKey, "max_bet_amount", maxBet) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
elapsed := now.Sub(startTime).Minutes() / 10 * 3 |
|
|
|
elapsed := now.Sub(startTime).Minutes() / 10 |
|
|
|
maxBet = int64(500 * elapsed) |
|
|
|
maxBet += int64(500 * elapsed * 3) |
|
|
|
pipeline.HSet(ctx, maxBetKey, "max_bet_amount", maxBet) |
|
|
|
pipeline.HSet(ctx, maxBetKey, "max_bet_amount", maxBet) |
|
|
|
} |
|
|
|
} |
|
|
|
// 执行Pipeline
|
|
|
|
// 执行Pipeline
|
|
|
|
|