上传竞技场红点返回错误处理
This commit is contained in:
parent
d308ecaaf4
commit
85c174a498
@ -50,7 +50,7 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.ArenaInfoReq) (code
|
||||
Uid: session.GetUserId(),
|
||||
Name: user.Name,
|
||||
Integral: global.ArenaInitiaIntegral,
|
||||
Ticket: 10,
|
||||
Ticket: global.ArenaTicketMax,
|
||||
Streak: 0,
|
||||
Record: make([]*pb.DBArenaBattleRecord, 0),
|
||||
Lastrtickettime: 0,
|
||||
|
@ -389,7 +389,7 @@ func (this *modelArena) reddot(session comm.IUserSession) bool {
|
||||
info *pb.DBArenaUser
|
||||
err error
|
||||
)
|
||||
if info, err = this.queryPlayerInfo(session.GetUserId()); err != nil {
|
||||
if info, err = this.queryPlayerInfo(session.GetUserId()); err != nil && err != mgo.MongodbNil {
|
||||
return false
|
||||
}
|
||||
if err == mgo.MongodbNil {
|
||||
@ -397,6 +397,7 @@ func (this *modelArena) reddot(session comm.IUserSession) bool {
|
||||
if global.ArenaTicketMax >= global.ArenaTicketCos {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
if info.Ticket > this.module.configure.GetGlobalConf().ArenaTicketCos {
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user