2025-05-24 14:48:16 +08:00
|
|
|
|
using BLL;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Data.SqlClient;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using AspNet = System.Web.UI.WebControls;
|
|
|
|
|
|
|
|
|
|
namespace FineUIPro.Web.ZHDD
|
|
|
|
|
{
|
|
|
|
|
public partial class ZHDD : PageBase
|
|
|
|
|
{
|
|
|
|
|
#region 加载页面
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 加载页面
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
|
/// <param name="e"></param>
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!IsPostBack)
|
|
|
|
|
{
|
2025-05-26 09:01:16 +08:00
|
|
|
|
//string username = "rdys_test";
|
|
|
|
|
//string password = "Runde.2024";
|
|
|
|
|
string username = "合肥诺必达";
|
|
|
|
|
string password = "Hf123456@";
|
2025-05-24 14:48:16 +08:00
|
|
|
|
var res1 = APIGetHttpService.Http("https://caps.runde.pro/api/index.php?ctl=tool&act=get_pkey&user_name=" + username + "&pwd=" + password, "POST");
|
|
|
|
|
var j1 = JsonConvert.DeserializeObject<dynamic>(res1);
|
|
|
|
|
string data = j1.data;
|
|
|
|
|
|
|
|
|
|
var res2 = APIGetHttpService.Http("https://caps.runde.pro/api/index.php?ctl=tool&act=get_token&user_name=" + username + "&pkey=" + j1.data, "POST");
|
|
|
|
|
var j2 = JsonConvert.DeserializeObject<dynamic>(res2);
|
|
|
|
|
string session_id = j2.session_id;
|
|
|
|
|
string token = j2.token;
|
|
|
|
|
ifZHDD.Src = "https://caps.runde.pro/login/#token=" + session_id + "&user_name=" + username + "target=home";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|