[fix] 修复table设置了mode=map,但index为空时,抛出key不能为多个错误的bug
parent
3f2b2c71eb
commit
6d991ef000
|
|
@ -204,9 +204,9 @@ namespace Luban.Job.Cfg.Defs
|
||||||
}
|
}
|
||||||
case "map":
|
case "map":
|
||||||
{
|
{
|
||||||
if ((string.IsNullOrWhiteSpace(indexStr) || indexs.Length != 1))
|
if (!string.IsNullOrWhiteSpace(indexStr) && indexs.Length > 1)
|
||||||
{
|
{
|
||||||
throw new Exception($"定义文件:'{defineFile}' table:'{tableName}' 是单键表,index:'{indexStr}'不能包含多个key");
|
throw new Exception($"定义文件:'{defineFile}' table:'{tableName}' 是单主键表,index:'{indexStr}'不能包含多个key");
|
||||||
}
|
}
|
||||||
mode = ETableMode.MAP;
|
mode = ETableMode.MAP;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue