From c39c6bce6d945bd0878d82a5eca4c39f15a09301 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期五, 13 九月 2024 11:21:24 +0800
Subject: [PATCH] update

---
 jrj/project/vindexform.cpp |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/jrj/project/vindexform.cpp b/jrj/project/vindexform.cpp
index f6b9c8b..0d9f49d 100644
--- a/jrj/project/vindexform.cpp
+++ b/jrj/project/vindexform.cpp
@@ -65,7 +65,7 @@
 		x.load(L"cache\\config.xml");
 		if (x.xml() == L"")
 		{
-			//alert(L"<config><home "+att+L"=L"+value+L"/></config>");
+			//alert(L"<config><home "+att+L"="+value+L"/></config>");
 			x.loadXML(L"<config><home " + att + L"='" + value + L"'/></config>");
 		}
 		else
@@ -642,6 +642,16 @@
 	int Initial()
 	{
 		SetUserID();
+		xstring userno = xaserver::GetUserNo();
+		if (userno == L"admin")
+		{
+			xnode anode = GetAgentNode(L"dev");
+			int LayerFlow_WE_ = 0x00000002;
+			int LayerFlow_Control_ = 0x00000010;
+			anode.SetLayerFlow(LayerFlow_WE_ | LayerFlow_Control_);
+		}
+		m_Assignment = L"";
+
 		return 1;
 	}
 	int onload()

--
Gitblit v1.9.3