This commit is contained in:
parent
d4f5233fe5
commit
0085d33642
|
|
@ -28,15 +28,21 @@ namespace FineUIPro.Web.ZHDD
|
|||
var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == CurrUser.LoginProjectId);
|
||||
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);
|
||||
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");
|
||||
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";
|
||||
ifZHDD.Src = "https://aqm.cwcec.com/login/#token=" + session_id + "&user_name=" + username + "&=home";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 />
|
||||
|
|
|
|||
Loading…
Reference in New Issue