修改集团报表上报问题
This commit is contained in:
parent
c13c5de7ec
commit
83407432a9
|
@ -4,6 +4,7 @@ using RestSharp;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
using System.Security.Policy;
|
using System.Security.Policy;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
@ -20,6 +21,7 @@ namespace BLL
|
||||||
var client = new RestClient(baseurl);
|
var client = new RestClient(baseurl);
|
||||||
client.Timeout = -1;
|
client.Timeout = -1;
|
||||||
var request = new RestRequest(Method.POST);
|
var request = new RestRequest(Method.POST);
|
||||||
|
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||||
var thisUnitId = BLL.Const.UnitId_CD;
|
var thisUnitId = BLL.Const.UnitId_CD;
|
||||||
var thisUnit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
var thisUnit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
request.AddParameter("UnitName", thisUnit.UnitName);
|
request.AddParameter("UnitName", thisUnit.UnitName);
|
||||||
|
@ -55,6 +57,7 @@ namespace BLL
|
||||||
var client = new RestClient(baseurl);
|
var client = new RestClient(baseurl);
|
||||||
client.Timeout = -1;
|
client.Timeout = -1;
|
||||||
var request = new RestRequest(Method.POST);
|
var request = new RestRequest(Method.POST);
|
||||||
|
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||||
var tokenItem = GetToken();
|
var tokenItem = GetToken();
|
||||||
request.AddHeader("token", tokenItem.Token);
|
request.AddHeader("token", tokenItem.Token);
|
||||||
request.AddJsonBody(JsonBody);
|
request.AddJsonBody(JsonBody);
|
||||||
|
|
|
@ -8,6 +8,7 @@ using BLL;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
using Model;
|
using Model;
|
||||||
|
using System.Net;
|
||||||
|
|
||||||
namespace FineUIPro.Web.SysManage
|
namespace FineUIPro.Web.SysManage
|
||||||
{
|
{
|
||||||
|
@ -1161,6 +1162,7 @@ namespace FineUIPro.Web.SysManage
|
||||||
var client = new RestClient(baseurl);
|
var client = new RestClient(baseurl);
|
||||||
client.Timeout = -1;
|
client.Timeout = -1;
|
||||||
var request = new RestRequest(Method.POST);
|
var request = new RestRequest(Method.POST);
|
||||||
|
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||||
var thisUnit = BLL.UnitService.GetUnitByUnitId(BLL.Const.UnitId_CD);
|
var thisUnit = BLL.UnitService.GetUnitByUnitId(BLL.Const.UnitId_CD);
|
||||||
request.AddParameter("UnitName", thisUnit.UnitName);
|
request.AddParameter("UnitName", thisUnit.UnitName);
|
||||||
request.AddParameter("CollCropCode", thisUnit.CollCropCode);
|
request.AddParameter("CollCropCode", thisUnit.CollCropCode);
|
||||||
|
|
Loading…
Reference in New Issue