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