Commit 4d7819fb by lcx

修改url

parent 8bb620c0
...@@ -82,7 +82,7 @@ public ApiResponse FeeSource([FromBody] ModModuleRequest request) ...@@ -82,7 +82,7 @@ public ApiResponse FeeSource([FromBody] ModModuleRequest request)
else else
{ {
var http = new RestSharpHelper(); var http = new RestSharpHelper();
var url = http.SetUrl(options.HttpPost, "/modextract/source"); var url = http.SetUrl(options.HttpPost, "modextract/source");
var req = http.CreatePostRequest(JsonHelper.Serialize(request)); var req = http.CreatePostRequest(JsonHelper.Serialize(request));
var res = http.GetResponse(url, req); var res = http.GetResponse(url, req);
var ret = http.GetContent<ApiResponse<ModFeeResponse>>(res); var ret = http.GetContent<ApiResponse<ModFeeResponse>>(res);
...@@ -189,10 +189,10 @@ public ApiResponse Items([FromBody] ModItemRequest request) ...@@ -189,10 +189,10 @@ public ApiResponse Items([FromBody] ModItemRequest request)
} }
else else
{ {
logger.LogInformation($"绩效收入模板配置项列表 : 请求地址 {options.HttpPost}/modextract/items"); logger.LogInformation($"绩效收入模板配置项列表 : 请求地址 {options.HttpPost}modextract/items");
var http = new RestSharpHelper(); var http = new RestSharpHelper();
var url = http.SetUrl(options.HttpPost, "/modextract/items"); var url = http.SetUrl(options.HttpPost, "modextract/items");
var req = http.CreatePostRequest(JsonHelper.Serialize(request)); var req = http.CreatePostRequest(JsonHelper.Serialize(request));
var res = http.GetResponse(url, req); var res = http.GetResponse(url, req);
var ret = http.GetContent<ApiResponse>(res); var ret = http.GetContent<ApiResponse>(res);
......
...@@ -416,6 +416,7 @@ public ApiResponse OtherList([FromBody] AgOtherRequest request) ...@@ -416,6 +416,7 @@ public ApiResponse OtherList([FromBody] AgOtherRequest request)
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Route("api/second/other/save")] [Route("api/second/other/save")]
[HttpPost]
public ApiResponse OtherSave([FromBody] AgOtherRequest request) public ApiResponse OtherSave([FromBody] AgOtherRequest request)
{ {
var result = secondAllotService.OtherSave(request.SecondId, request.Othersources); var result = secondAllotService.OtherSave(request.SecondId, request.Othersources);
......
...@@ -214,7 +214,7 @@ public ApiResponse NewExtractData([CustomizeValidator, FromBody] ExtractRequest ...@@ -214,7 +214,7 @@ public ApiResponse NewExtractData([CustomizeValidator, FromBody] ExtractRequest
else else
{ {
var http = new RestSharpHelper(); var http = new RestSharpHelper();
string endpoint = "/extract/extract"; string endpoint = "extract/extract";
var extractUrl = http.SetUrl(url.HttpPost, endpoint); var extractUrl = http.SetUrl(url.HttpPost, endpoint);
var obj = new var obj = new
......
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
}, },
"WebapiUrl": { "WebapiUrl": {
// 抽取结果保存地址 // 抽取结果保存地址
"ImportFile": "http://localhost:5001/api/template/savefile", "ImportFile": "http://localhost:5001/api/",
// 抽取uri // 抽取uri
"HttpPost": "http://localhost:50997/api" "HttpPost": "http://localhost:50997/api/"
} }
} }
...@@ -109,7 +109,7 @@ private string SaveFileAsTemplate(IFormFile file, int hospitalId) ...@@ -109,7 +109,7 @@ private string SaveFileAsTemplate(IFormFile file, int hospitalId)
private void ImportFileAsAllotExtractFile(int allotId, int hospitalId, string filePath) private void ImportFileAsAllotExtractFile(int allotId, int hospitalId, string filePath)
{ {
var http = new RestSharpHelper(); var http = new RestSharpHelper();
string endpoint = "/template/savefile"; string endpoint = "template/savefile";
var importUrl = http.SetUrl(options.ImportFile, endpoint); var importUrl = http.SetUrl(options.ImportFile, endpoint);
var obj = new { allotId, hospitalId }; var obj = new { allotId, hospitalId };
......
...@@ -105,7 +105,7 @@ public void ReturnTheLog(int allotId, string groupName, int type, string tag, ob ...@@ -105,7 +105,7 @@ public void ReturnTheLog(int allotId, string groupName, int type, string tag, ob
if (!isSingle) if (!isSingle)
{ {
var http = new RestSharpHelper(); var http = new RestSharpHelper();
var importUrl = http.SetUrl(url.ImportFile, "/template/returnlog"); var importUrl = http.SetUrl(url.ImportFile, "template/returnlog");
var info = new SignalrLogRequest() var info = new SignalrLogRequest()
{ {
Type = type, Type = type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment