上传战斗助阵配置找不到处理

This commit is contained in:
liwei1dao 2022-11-23 22:55:47 +08:00
parent ed3b761172
commit 5d47ed9b79

View File

@ -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
} }