Commit ec84f1f8 by 泽锋 李

fix

parent 0af12d89
...@@ -5,6 +5,7 @@ using System.Threading.Tasks; ...@@ -5,6 +5,7 @@ using System.Threading.Tasks;
using AutoTurnOver.Common; using AutoTurnOver.Common;
using AutoTurnOver.Models; using AutoTurnOver.Models;
using AutoTurnOver.Services; using AutoTurnOver.Services;
using AutoTurnOver.Utility;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
...@@ -15,6 +16,15 @@ namespace AutoTurnOver.Controllers ...@@ -15,6 +16,15 @@ namespace AutoTurnOver.Controllers
[NoLogin] [NoLogin]
public class ApiController : ControllerBase public class ApiController : ControllerBase
{ {
[HttpGet("Test")]
public ActionResult<RequestResultDto> Test([FromBody] dc_quantity_out_stock_search_dto search)
{
return new RequestResultDto { success = true, data =
HttpHelper.Request("http://10.0.3.13/api/Logistics/ApiLogistics/GetPlatOfficialLine?PlatName=aliexpress&PlatSite=US&EndCountry=US&Skus=&WeightKg=0.015&Size=7,4,1&ElectrifiedType=1&SellMoney=1.6000&Currency=USD&OfficialLine=&postWay=&distribution=&logisticsId=0&EnterZip=&isIgnoreVolumeWeight=True&ruleStartPoint=1", RequestType.GET, timeout: 1000 * 60 * 60 * 24)
};
}
[HttpPost("GetOutStockPage")] [HttpPost("GetOutStockPage")]
public ActionResult<RequestResultDto> GetOutStockPage([FromBody] dc_quantity_out_stock_search_dto search) public ActionResult<RequestResultDto> GetOutStockPage([FromBody] dc_quantity_out_stock_search_dto search)
{ {
......
...@@ -13,6 +13,16 @@ namespace ShortagePush ...@@ -13,6 +13,16 @@ namespace ShortagePush
{ {
Console.WriteLine("推送缺货数据服务"); Console.WriteLine("推送缺货数据服务");
try
{
//new ReportServices().ReturnGoodsPush();
}
catch (Exception ex)
{
throw;
}
//new ReportServices().ShortagePush(); //new ReportServices().ShortagePush();
//new ReportServices().ShortagePush(platform: "walmart"); //new ReportServices().ShortagePush(platform: "walmart");
//new ReportServices().ShortagePush(); //new ReportServices().ShortagePush();
......
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