上传工会boos战代码
This commit is contained in:
parent
508a6c4d7b
commit
deb7fcc0c4
@ -68,7 +68,7 @@ func (this *apiComp) ChallengeFinish(session comm.IUserSession, req *pb.GuildGve
|
||||
}
|
||||
return
|
||||
}
|
||||
if user = this.module.ModuleUser.GetUser(session.GetUserId()); user != nil {
|
||||
if user = this.module.ModuleUser.GetUser(session.GetUserId()); user == nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
|
@ -80,7 +80,7 @@ func (this *ModelUnionroulette) roulettechangePush(unionid string, uid string, a
|
||||
users = append(users, v.Uid)
|
||||
}
|
||||
|
||||
lock, _ := this.module.modelGuildGve.userlock(unionid)
|
||||
lock, _ := this.userlock(unionid)
|
||||
err = lock.Lock()
|
||||
if err != nil {
|
||||
this.module.Error("公会战分布式锁 err!", log.Field{Key: "Unionid", Value: unionid}, log.Field{Key: "err", Value: err.Error()})
|
||||
|
@ -74,7 +74,7 @@ func (this *Tools) GetPlayerlvConf(uid string) (conf *cfg.GamePlayerlvData, errd
|
||||
user *pb.DBUser
|
||||
err error
|
||||
)
|
||||
if user = this.ModuleUser.GetUser(uid); user != nil {
|
||||
if user = this.ModuleUser.GetUser(uid); user == nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.String(),
|
||||
|
Loading…
Reference in New Issue
Block a user