Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
data-center-auto
Commits
ec84f1f8
Commit
ec84f1f8
authored
Oct 21, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0af12d89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
ApiController.cs
AutoTurnOver/Controllers/ApiController.cs
+10
-0
Program.cs
ShortagePush/Program.cs
+10
-0
No files found.
AutoTurnOver/Controllers/ApiController.cs
View file @
ec84f1f8
...
@@ -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
)
{
{
...
...
ShortagePush/Program.cs
View file @
ec84f1f8
...
@@ -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();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment