refactor: 重构抽奖逻辑以支持可验证凭据 feat(redis): 集成Redis客户端并添加配置支持 fix: 修复订单取消时的优惠券和库存处理逻辑 docs: 添加对对碰游戏前端对接指南和示例JSON test: 添加对对碰游戏模拟测试和验证逻辑
22 lines
347 B
Go
22 lines
347 B
Go
package app
|
|
|
|
import (
|
|
"bindbox-game/internal/pkg/logger"
|
|
"testing"
|
|
)
|
|
|
|
// MockLogger for testing
|
|
type MockLogger struct {
|
|
logger.CustomLogger
|
|
}
|
|
|
|
func TestCleanupExpiredMatchingGames(t *testing.T) {
|
|
// Deprecated: Redis handles expiry now.
|
|
t.Skip("Deprecated: Redis handles expiry now")
|
|
/*
|
|
// 1. Setup
|
|
gameSessionsMutex.Lock()
|
|
...
|
|
*/
|
|
}
|