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)