This commit is contained in:
夏菊 2026-01-21 14:24:45 +08:00
parent 0085d33642
commit 6d0d76e081
1 changed files with 11 additions and 17 deletions

View File

@ -29,22 +29,16 @@ namespace FineUIPro.Web.ZHDD
string username = project.AQMAccount;// "bruce";
string password = project.AQMPwd;// "Admin!@%2316891#16891";
var res1 = APIGetHttpService.Http("https://aqm.cwcec.com/api/index.php", "POST", "application/x-www-form-urlencoded", null,"ctl=tool&act=get_pkey&user_name=" + username + "&pwd="+ password);
if (!string.IsNullOrWhiteSpace(res1))
{
var j1 = JsonConvert.DeserializeObject<dynamic>(res1);
string data = j1.data;
var res2 = APIGetHttpService.Http("https://aqm.cwcec.com/api/index.php?ctl=tool&act=get_token&user_name=" + username + "&pkey="+j1.data, "POST");
if (!string.IsNullOrWhiteSpace(res2))
{
var j2 = JsonConvert.DeserializeObject<dynamic>(res2);
string session_id = j2.session_id;
string token = j2.token;
ifZHDD.Src = "https://aqm.cwcec.com/login/#token=" + session_id+"&user_name=" + username + "&=home";
}
}
}
}
#endregion