🐛 Fix script characters unexpected change

This commit is contained in:
xtaodada 2023-12-18 20:47:20 +08:00
parent 06195cca5f
commit 78b8889281
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -169,7 +169,7 @@ class GCSimRunner:
if script is None: if script is None:
return GCSimResult(error="未找到脚本", user_id=user_id, uid=uid, script_key=script_key) return GCSimResult(error="未找到脚本", user_id=user_id, uid=uid, script_key=script_key)
try: try:
merged_script = GCSimConverter.merge_character_infos(script, character_infos) merged_script = GCSimConverter.merge_character_infos(script.copy(), character_infos)
except ValueError: except ValueError:
return GCSimResult(error="无法合并角色信息", user_id=user_id, uid=uid, script_key=script_key) return GCSimResult(error="无法合并角色信息", user_id=user_id, uid=uid, script_key=script_key)
if not config.debug: if not config.debug: