修复除零异常

This commit is contained in:
flswld
2023-03-27 18:39:39 +08:00
parent fae84e0b07
commit f1a14ccf0e
3 changed files with 14 additions and 18 deletions

View File

@@ -353,7 +353,7 @@ func getSceneLuaConfigTable[T any](luaState *lua.LState, tableName string, objec
luaValue := luaState.GetGlobal(tableName)
table, ok := luaValue.(*lua.LTable)
if !ok {
logger.Info("get lua table error, table name: %v, lua type: %v", tableName, luaValue.Type().String())
logger.Debug("get lua table error, table name: %v, lua type: %v", tableName, luaValue.Type().String())
return true
}
tableObject := convLuaValueToGo(table)

View File

@@ -239,7 +239,7 @@ func (g *GameDataConfig) loadGroup(group *Group, block *Block, sceneId int32, bl
return
}
if len(suiteLuaTableList) == 0 {
logger.Info("get suites object is nil, sceneId: %v, blockId: %v, groupId: %v", sceneId, blockId, groupId)
// logger.Debug("get suites object is nil, sceneId: %v, blockId: %v, groupId: %v", sceneId, blockId, groupId)
}
group.SuiteList = make([]*Suite, 0)
for _, suiteLuaTable := range suiteLuaTableList {