上传战斗助阵配置找不到处理
This commit is contained in:
parent
ed3b761172
commit
5d47ed9b79
@ -118,6 +118,9 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
|
|||||||
}
|
}
|
||||||
if req.Sysformat != nil && len(req.Sysformat) > 0 {
|
if req.Sysformat != nil && len(req.Sysformat) > 0 {
|
||||||
for i, v := range req.Sysformat {
|
for i, v := range req.Sysformat {
|
||||||
|
if v == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if captain, masters, code = this.createMasterRoles(100, i, v); code != pb.ErrorCode_Success {
|
if captain, masters, code = this.createMasterRoles(100, i, v); code != pb.ErrorCode_Success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -129,6 +132,9 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
|
|||||||
}
|
}
|
||||||
if req.Backupformat != nil && len(req.Backupformat) > 0 {
|
if req.Backupformat != nil && len(req.Backupformat) > 0 {
|
||||||
for i, v := range req.Backupformat {
|
for i, v := range req.Backupformat {
|
||||||
|
if v == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if captain, masters, code = this.createMasterRoles(100, i, v); code != pb.ErrorCode_Success {
|
if captain, masters, code = this.createMasterRoles(100, i, v); code != pb.ErrorCode_Success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user