修复竞技场挑战阵型bug
This commit is contained in:
parent
9f14ed050b
commit
a479a077ba
@ -67,7 +67,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.ArenaChallenge
|
|||||||
})
|
})
|
||||||
if red.Attack != nil {
|
if red.Attack != nil {
|
||||||
for i, v := range req.Battle.Format {
|
for i, v := range req.Battle.Format {
|
||||||
if (red.Attack.Formt[i] != nil && red.Attack.Formt[i].Id != v) || (red.Attack.Formt[i] == nil && v == "") {
|
if (red.Attack.Formt[i] != nil && red.Attack.Formt[i].Id != v) || (red.Attack.Formt[i] == nil && v != "") {
|
||||||
change = true
|
change = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -399,7 +399,6 @@ func (this *DBModel) ChangeLists(uid string, datas map[string]interface{}, opt .
|
|||||||
func (this *DBModel) BatchChange(uids []string, datas map[string]interface{}, opt ...DBOption) (err error) {
|
func (this *DBModel) BatchChange(uids []string, datas map[string]interface{}, opt ...DBOption) (err error) {
|
||||||
pipe := this.Redis.RedisPipe(context.TODO())
|
pipe := this.Redis.RedisPipe(context.TODO())
|
||||||
for _, uid := range uids {
|
for _, uid := range uids {
|
||||||
|
|
||||||
if err = pipe.HMSet(this.ukey(uid), datas); err != nil {
|
if err = pipe.HMSet(this.ukey(uid), datas); err != nil {
|
||||||
log.Error("DBModel ChangeList", log.Field{Key: "err", Value: err.Error()})
|
log.Error("DBModel ChangeList", log.Field{Key: "err", Value: err.Error()})
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user