上传竞技场红点返回错误处理
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(),
|
Uid: session.GetUserId(),
|
||||||
Name: user.Name,
|
Name: user.Name,
|
||||||
Integral: global.ArenaInitiaIntegral,
|
Integral: global.ArenaInitiaIntegral,
|
||||||
Ticket: 10,
|
Ticket: global.ArenaTicketMax,
|
||||||
Streak: 0,
|
Streak: 0,
|
||||||
Record: make([]*pb.DBArenaBattleRecord, 0),
|
Record: make([]*pb.DBArenaBattleRecord, 0),
|
||||||
Lastrtickettime: 0,
|
Lastrtickettime: 0,
|
||||||
|
@ -389,7 +389,7 @@ func (this *modelArena) reddot(session comm.IUserSession) bool {
|
|||||||
info *pb.DBArenaUser
|
info *pb.DBArenaUser
|
||||||
err error
|
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
|
return false
|
||||||
}
|
}
|
||||||
if err == mgo.MongodbNil {
|
if err == mgo.MongodbNil {
|
||||||
@ -397,6 +397,7 @@ func (this *modelArena) reddot(session comm.IUserSession) bool {
|
|||||||
if global.ArenaTicketMax >= global.ArenaTicketCos {
|
if global.ArenaTicketMax >= global.ArenaTicketCos {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
if info.Ticket > this.module.configure.GetGlobalConf().ArenaTicketCos {
|
if info.Ticket > this.module.configure.GetGlobalConf().ArenaTicketCos {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user