Przeglądaj źródła

Revert "update 替换表名"

This reverts commit 73c13df824c156f5cdea592fd001668ef732e05c.
Alvin 8 miesięcy temu
rodzic
commit
e1a02099dd

+ 3 - 3
game/game_cluster/nodes/webadmin/service/synthesis.go

@@ -35,7 +35,7 @@ func (s *Synthesis) FindMDBUserLogDaily(req entity.UserLogDailyReq) (*entity.Use
 	defer cancel()
 
 	// 指定集合
-	collection := mdb.MDB.Collection(constant.CNamePlayerDailyRecord)
+	collection := mdb.MDB.Collection("playerDailyRecord")
 
 	// 构建查询条件 - 如果查询值为空那就不添加查询条件
 	filter := bson.M{}
@@ -265,7 +265,7 @@ func (s *Synthesis) WithdrawalStatusBatch(req entity.UserWithdrawalStatusBatch)
 // 返回值为 UserCountryResp 的切片和错误。
 func (s *Synthesis) FindUserCountryCount() (*entity.UserCountryResp, *code.Result) {
 	// 选择数据库和集合
-	collection := mdb.MDB.Collection(constant.CNamePlayerCountryByIPStat)
+	collection := mdb.MDB.Collection("playerCountryStat")
 
 	// 定义聚合管道
 	// 定义聚合管道
@@ -414,7 +414,7 @@ func (s *Synthesis) FindUserRetention(req entity.UserRetentionReq) (*entity.User
 func (s *Synthesis) FindUserLevel() (*entity.UserLevelCountResp, *code.Result) {
 	ctx, cancel := context.WithTimeout(context.Background(), 100*time.Second)
 	defer cancel()
-	collection := mdb.MDB.Collection(constant.CNamePlayerLevelStat)
+	collection := mdb.MDB.Collection("playerLevelStat")
 
 	// 查询所有文档
 	cursor, err := collection.Find(ctx, bson.M{})