From 70eedd3bf9810bc022967da6446dd8a0ff6f43b7 Mon Sep 17 00:00:00 2001 From: wsz <w1832984788@outlook.com> Date: 星期二, 10 六月 2025 14:28:23 +0800 Subject: [PATCH] 提交03、 --- lua_code/mobox_base/oi_base_xml.lua | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lua_code/mobox_base/oi_base_xml.lua b/lua_code/mobox_base/oi_base_xml.lua index fc5548b..abd77bc 100644 --- a/lua_code/mobox_base/oi_base_xml.lua +++ b/lua_code/mobox_base/oi_base_xml.lua @@ -10,7 +10,7 @@ local result = {} for k, v in pairs(tbl) do -- 鍘婚櫎鍛藉悕绌洪棿鍓嶇紑[6,9](@ref) - local new_key = k:gsub("v1:", ""):gsub("soap:", "") + local new_key = k:gsub("v1:", ""):gsub("soap:", ""):gsub("soapenv:", "") if type(v) == "table" then -- 澶勭悊鏁扮粍缁撴瀯[4](@ref) @@ -27,6 +27,7 @@ result[new_key] = v ~= "" and v or nil end end + if next(result) == nil then result = "" end return result end return process(data) -- Gitblit v1.9.1