Compare commits

..

No commits in common. "8aa5fd7c5698bddaee337994e1b7ccad5b0fa6ff" and "e636afc4aaad8e02d7e5ef9b62df396fca0bde1d" have entirely different histories.

1 changed files with 20 additions and 26 deletions

View File

@ -2818,16 +2818,11 @@ func CSBillList(s *netlib.Session, packetId int, data interface{}, sid int64) er
fromIndex := msg.GetPageNo() * msg.GetPageSize() fromIndex := msg.GetPageNo() * msg.GetPageSize()
toIndex := fromIndex + msg.GetPageSize() toIndex := fromIndex + msg.GetPageSize()
var err error logs, _, err := model.GetCoinLogGame(p.Platform, p.SnId, common.BillTypeCoin, startTs, endTs, int(fromIndex), int(toIndex))
var logs []model.CoinLog
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} {
logs, _, err = model.GetCoinLogGame(p.Platform, p.SnId, common.BillTypeCoin, startTs, endTs, int(fromIndex), int(toIndex))
return nil
}), task.CompleteNotifyWrapper(func(i interface{}, t task.Task) {
if err != nil { if err != nil {
logger.Logger.Errorf("GetCoinLogGame err:%v", err) logger.Logger.Errorf("GetCoinLogGame err:%v", err)
p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SCBillList), ret) p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SCBillList), ret)
return return err
} }
for _, v := range logs { for _, v := range logs {
@ -2844,7 +2839,6 @@ func CSBillList(s *netlib.Session, packetId int, data interface{}, sid int64) er
} }
p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SCBillList), ret) p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SCBillList), ret)
logger.Logger.Tracef("SCBillList pageNo:%d, pageSize:%d %v", msg.GetPageNo(), msg.GetPageSize(), ret) logger.Logger.Tracef("SCBillList pageNo:%d, pageSize:%d %v", msg.GetPageNo(), msg.GetPageSize(), ret)
}), "GetCoinLogGame").Start()
return nil return nil
} }