Browse Source

移除外网接口访问

master
胡超1 11 months ago
parent
commit
fbb8d08980
  1. 2
      CPF_Cef/Common/ChunkedUpload.cs
  2. 2
      CPF_Cef/Parame.cs

2
CPF_Cef/Common/ChunkedUpload.cs

@ -703,7 +703,7 @@ namespace AksWebBrowser.Common
try
{
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, Parame.qwUrl + "/api/QuestionAnswer/Query");
var request = new HttpRequestMessage(HttpMethod.Post, Parame.apiUrl + "/api/QuestionAnswer/Query");
var content = new StringContent("{\r\n \"PetitionId\": \"" + PetitionId + "\",\r\n \"PId\": \"" + PId + "\",\r\n \"Name\": \"" + Name + "\",\r\n \"PageIndex\": " + PageIndex + ",\r\n \"PageSize\": " + PageSize + "\r\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);

2
CPF_Cef/Parame.cs

@ -59,8 +59,6 @@ namespace AksWebBrowser
public static int score = 65;
//人脸比对阈值
public static string ImgBase64 = string.Empty;
//获取问答
public static string qwUrl = "http://116.205.231.210:82";
}
public struct Func
{

Loading…
Cancel
Save