示例#1
0
        //private static String htUrl = "http://localhost:20859";

        public static string Login(string userName, string passWord, string softName)
        {
            string machineCode = MachineCode.GetMachineCodeString();
            string url         = htUrl + string.Format("/ClientApi/AccountLogin?userName={0}&passWord={1}&softName={2}&machineCode={3}",
                                                       userName, passWord, softName, machineCode);
            string html = HttpAdd.OnlyGetHtml(url);

            return(html);
        }
示例#2
0
        public static string GetMachineCodeString()
        {
            string machineCodeString = string.Empty;

            if (machineCode == null)
            {
                machineCode = new MachineCode();
            }
            machineCodeString = "PC." + machineCode.GetCpuInfo() + "." +
                                machineCode.GetHDid() + "." +
                                machineCode.GetMoAddress();
            return(machineCodeString);
        }