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
9e93a20e
Commit
9e93a20e
authored
Apr 13, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换在线改零的推送
parent
df46084a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ApiServices.cs
AutoTurnOver.Services/ApiServices.cs
+6
-6
No files found.
AutoTurnOver.Services/ApiServices.cs
View file @
9e93a20e
...
...
@@ -495,9 +495,9 @@ namespace AutoTurnOver.Services
/// </summary>
private
static
ShortagePush_ResponseDto
ShortagePushApi
(
ShortagePush_RequestDto
data
)
{
string
url
=
ConfigHelper
.
GetValue
(
"PPS_ShortagePush"
);
string
url
2
=
ConfigHelper
.
GetValue
(
"PPS_ShortagePush2"
);
string
resultStr1
=
HttpHelper
.
Request
(
url2
,
RequestType
.
POST
,
data
.
ToJson
(),
timeout
:
1000
*
60
*
60
*
24
,
entype
:
"application/json"
);
//
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
)
...
...
@@ -545,9 +545,9 @@ namespace AutoTurnOver.Services
/// </summary>
private
static
ShortagePush_ResponseDto
ReturnGoodsPushApi
(
ShortagePush_RequestDto
data
)
{
string
url
=
ConfigHelper
.
GetValue
(
"PPS_ShortagePush"
);
string
url
2
=
ConfigHelper
.
GetValue
(
"PPS_ShortagePush2"
);
string
resultStr2
=
HttpHelper
.
Request
(
url2
,
RequestType
.
POST
,
data
.
ToJson
(),
timeout
:
1000
*
60
*
60
*
24
,
entype
:
"application/json"
);
//
string url = ConfigHelper.GetValue("PPS_ShortagePush");
string
url
=
ConfigHelper
.
GetValue
(
"PPS_ShortagePush2"
);
//
string resultStr2= 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
)
...
...
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