Procházet zdrojové kódy

Revert "update 提现记录新增tgid字段"

This reverts commit 44b5cc4fa27291d5c72c84b27e7bb16e1ae56ffb.
Alvin před 8 měsíci
rodič
revize
afa290b0e6

+ 0 - 1
game/game_cluster/internal/mdb/models/cashoutrecord.go

@@ -8,7 +8,6 @@ import (
 type CashOutRecord struct {
 	UserName    string `json:"userName" bson:"userName"`        // 用户名字
 	NickName    string `json:"nickName" bson:"nickName"`        // 昵称
-	OpenId      string `json:"openId" bson:"openId"`            // 对应tgid
 	Status      int    `json:"status" bson:"status"`            // 0:未审核 1:审核通过 2:审核失败
 	Amount      int    `json:"amount" bson:"amount"`            //
 	AfterAmount int    `json:"afterAmount" bson:"after_amount"` //

+ 2 - 4
game/game_cluster/nodes/game/module/player/cashout.go

@@ -2,9 +2,6 @@ package player
 
 import (
 	"context"
-	"log"
-	"time"
-
 	mhayaCrypto "github.com/mhaya/extend/crypto"
 	cstring "github.com/mhaya/extend/string"
 	mhayaTime "github.com/mhaya/extend/time"
@@ -18,6 +15,8 @@ import (
 	"go.mongodb.org/mongo-driver/bson"
 	"go.mongodb.org/mongo-driver/bson/primitive"
 	"go.mongodb.org/mongo-driver/mongo/options"
+	"log"
+	"time"
 )
 
 func (p *actorPlayer) cashOut(req *param.CashOutReq) int32 {
@@ -48,7 +47,6 @@ func (p *actorPlayer) cashOut(req *param.CashOutReq) int32 {
 		rs, err := mdb.MDB.Collection(constant.CNameCashOutRecord).InsertOne(context.Background(), &models.CashOutRecord{
 			UserName:    p.Player.UserName,
 			NickName:    p.Player.NickName,
-			OpenId:      p.Player.OpenId,
 			Status:      0,
 			Type:        1,
 			AfterAmount: old,

+ 0 - 1
game/game_cluster/nodes/webadmin/entity/user_withdrawal.go

@@ -10,7 +10,6 @@ type UserWithdrawalDetail struct {
 	Id          string      `json:"id" bson:"_id"`                    // Id
 	UserName    string      `json:"user_name" bson:"userName"`        // 用户ID
 	NickName    string      `json:"nick_name" bson:"nickName"`        // 昵称
-	OpenId      string      `json:"openId" bson:"openId"`             // 对应tgid
 	Status      int         `json:"status" bson:"status"`             // 0:未审核 1:审核通过 2:审核失败
 	Reason      string      `json:"reason" bson:"reason"`             // 提现原因
 	Withdrawal  int         `json:"withdrawal" bson:"withdrawal"`     // 提现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现