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
d8c37074
Commit
d8c37074
authored
Jun 19, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6f801a1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
8 deletions
+29
-8
ApiServices.cs
AutoTurnOver.Services/ApiServices.cs
+18
-8
TaskDownloadServices.cs
AutoTurnOver.Services/TaskDownloadServices.cs
+9
-0
Program.cs
ShortagePush/Program.cs
+2
-0
No files found.
AutoTurnOver.Services/ApiServices.cs
View file @
d8c37074
...
...
@@ -529,6 +529,7 @@ namespace AutoTurnOver.Services
err_datas
.
AddRange
(
result
.
objData
);
}
page
++;
}
...
...
@@ -540,16 +541,25 @@ namespace AutoTurnOver.Services
/// </summary>
private
static
ShortagePush_ResponseDto
ShortagePushApi
(
ShortagePush_RequestDto
data
)
{
//string url = ConfigHelper.GetValue("PPS_ShortagePush");
string
url
=
ConfigHelper
.
GetValue
(
"PPS_ShortagePush2"
);
//string resultStr1 = HttpHelper.Request(url2, RequestType.POST, data.ToJson(), timeout: 1000 * 60 * 60 * 24, entype: "application/json");
string
resultStr
=
HttpHelper
.
Request
(
url
,
RequestType
.
POST
,
data
.
ToJson
(),
timeout
:
1000
*
60
*
60
*
24
,
entype
:
"application/json"
);
var
result
=
resultStr
.
ToObj
<
ShortagePush_ResponseDto
>();
if
(
result
==
null
)
try
{
throw
new
Exception
(
"刊登系统异常: 推送失败"
);
//string url = ConfigHelper.GetValue("PPS_ShortagePush");
string
url
=
ConfigHelper
.
GetValue
(
"PPS_ShortagePush2"
);
//string resultStr1 = HttpHelper.Request(url2, RequestType.POST, data.ToJson(), timeout: 1000 * 60 * 60 * 24, entype: "application/json");
string
resultStr
=
HttpHelper
.
Request
(
url
,
RequestType
.
POST
,
data
.
ToJson
(),
timeout
:
1000
*
60
*
60
*
24
,
entype
:
"application/json"
);
var
result
=
resultStr
.
ToObj
<
ShortagePush_ResponseDto
>();
if
(
result
==
null
)
{
throw
new
Exception
(
"刊登系统异常: 推送失败"
);
}
return
result
;
}
return
result
;
catch
(
Exception
ex
)
{
throw
;
}
}
/// <summary>
...
...
AutoTurnOver.Services/TaskDownloadServices.cs
View file @
d8c37074
...
...
@@ -327,6 +327,15 @@ namespace AutoTurnOver.Services
/// </summary>
public
async
Task
<
string
>
DownloadAuto
(
string
par_json
,
dc_task_download
download_data
)
{
if
(
string
.
IsNullOrWhiteSpace
(
download_data
.
parameter_show
))
{
var
now
=
DateTime
.
Now
;
if
(
now
.
Hour
>
8
&&
now
.
Hour
<
20
)
{
throw
new
Exception
(
$" 8~20点之间导周转表数据,务必带参数 "
);
}
}
Condition_AutoTurnOver
search_data
=
par_json
.
ToObject
<
Condition_AutoTurnOver
>();
Console
.
WriteLine
(
"DownloadStock - 开始生成文件"
);
int
rows
=
0
;
...
...
ShortagePush/Program.cs
View file @
d8c37074
...
...
@@ -24,6 +24,8 @@ namespace ShortagePush
//new ReportServices().ReturnGoodsPush();
//new ReportServices().ShortagePushEbay();
//new ReportServices().PPSReturnGoodsPush("walmart");
//new ReportServices().ShortagePushEbay(true);
}
catch
(
Exception
ex
)
{
...
...
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