mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
fix: 修复事件拉取函数的安全性问题并改进错误处理
修复多个文件中事件拉取函数的安全性问题,添加更健壮的fallback机制 在imageview.lua中改进错误信息显示,确保image变量转换为字符串 在pkg.lua中调整JSON序列化参数以生成更紧凑的输出
This commit is contained in:
@@ -60,7 +60,7 @@ local function create_package(pkg_name)
|
||||
}
|
||||
local json_file = io.open(fs.combine(version_dir, "package.json"), "w")
|
||||
if json_file then
|
||||
json_file:write(textutils.serializeJSON(package_json, true))
|
||||
json_file:write(textutils.serializeJSON(package_json, false))
|
||||
json_file:close()
|
||||
print("Created package.json")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user