//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); }
public static string GetMachineCodeString() { string machineCodeString = string.Empty; if (machineCode == null) { machineCode = new MachineCode(); } machineCodeString = "PC." + machineCode.GetCpuInfo() + "." + machineCode.GetHDid() + "." + machineCode.GetMoAddress(); return(machineCodeString); }