[fix] 修复 导出python数据, DMap类型 key的格式问题 (#49)

python的dict类型key不像json只能为string,还可能为其他类型。
main
SaNeOr 2023-06-15 16:46:27 +08:00 committed by GitHub
parent ea1dc4a462
commit 803145e267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ namespace Luban.Job.Cfg.DataVisitors
x.Append(','); x.Append(',');
} }
++index; ++index;
x.Append('"').Append(e.Key.ToString()).Append('"'); x.Append(e.Key.Apply(this));
x.Append(':'); x.Append(':');
x.Append(e.Value.Apply(this)); x.Append(e.Value.Apply(this));
} }