This commit is contained in:
夏菊 2026-01-21 11:15:13 +08:00
parent d4f5233fe5
commit 0085d33642
2 changed files with 18 additions and 12 deletions

View File

@ -29,16 +29,22 @@ 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

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort />