Esempio n. 1
0
        /// <summary>
        /// 三
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        public static bool CheckWorkIdThree(string userName)
        {
            var    xDoc         = new XmlHelper.XmlHelper("~/xml/AgentWorkId.xml");
            string agentworkids = xDoc.GetValue("OnlinePayWorkerIDForThree");//直营代理商id

            agentworkids = Tools.Utility.DecodeStr(agentworkids);
            return(agentworkids.Contains(userName));
        }
Esempio n. 2
0
        /// <summary>
        /// 验证
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        public static bool CheckLocalAgentWorkID(string userName)
        {
            var    xDoc         = new XmlHelper.XmlHelper("~/xml/AgentWorkId.xml");
            string agentworkids = xDoc.GetValue("OnlinePayWorkerID");//直营代理商id

            agentworkids = Tools.Utility.DecodeStr(agentworkids);
            if (agentworkids.Contains(userName))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }