示例#1
0
        public JsonResult GetNodeConfigInfo()
        {
            NodeAppConfigInfo nodeinfo = new NodeAppConfigInfo();

            nodeinfo.NodeID = Dyd.BaseService.TaskManager.Web.Models.Common.GetAvailableNode();
            nodeinfo.TaskDataBaseConnectString = StringDESHelper.EncryptDES(Config.TaskConnectString, "dyd88888888");
            return(Json(new  { code = 1, msg = "", data = nodeinfo, total = 0 }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult GetNodeConfigInfo()
        {
            NodeAppConfigInfo nodeinfo = new NodeAppConfigInfo();

            nodeinfo.NodeID = Common.GetAvailableNode();
            nodeinfo.TaskDataBaseConnectString = StringDESHelper.EncryptDES(Config.TaskConnectString, "dyd88888888");
            //TBD  JsonRequestBehavior.AllowGet
            return(Json(new  { code = 1, msg = "", data = nodeinfo, total = 0 }));
        }