From 6fb710f1b24021ca5e95a00706ced3ba581c1c8d Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期二, 11 二月 2025 16:03:20 +0800 Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/mis-prj --- jrj/project/business/BasicCode/QuickCode_Tree.cpp | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/jrj/project/business/BasicCode/QuickCode_Tree.cpp b/jrj/project/business/BasicCode/QuickCode_Tree.cpp index 334fe69..ff264df 100644 --- a/jrj/project/business/BasicCode/QuickCode_Tree.cpp +++ b/jrj/project/business/BasicCode/QuickCode_Tree.cpp @@ -44,7 +44,8 @@ else { KXMLDOMElement xframeElement = GetElement(); - KXMLDOMElement agent = xframeElement.selectSingleNode(L"agent/" + xfNodeAgentArea + L"[1]/*"); + //KXMLDOMElement agent = xframeElement.selectSingleNode(L"agent/" + xfNodeAgentArea + L"[1]/*"); + KXMLDOMElement agent = m_configDoc.selectSingleNode(L"Config/" + xfNodeAgentArea + L"[1]/*"); if (agent) { xstring s = agent.xml(); @@ -75,7 +76,7 @@ return -1; } //trace(x.xml()); - if (x.xml() == L"") + if ((xstring)x.xml() == L"") { xml xx; xx.loadXML(L"<root/>"); @@ -556,10 +557,10 @@ { p += L"&"; int i = 1; - while (p.find(L"=L", 0) > 0) + while (p.find(L"=", 0) > 0) { - xstring name = p.mid(0, p.find(L"=L", 0)); - xstring value = p.mid(p.find(L"=L", 0) + 1, p.find(L"&", 0) - p.find(L"=L", 0) - 1); + xstring name = p.mid(0, p.find(L"=", 0)); + xstring value = p.mid(p.find(L"=", 0) + 1, p.find(L"&", 0) - p.find(L"=", 0) - 1); if (name == n) return L"" + value; i += 1; p = p.mid(p.find(L"&", 0) + 1, p.length()); -- Gitblit v1.9.3