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
5a49f551
Commit
5a49f551
authored
Apr 10, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改在线推送多推送一个接口
parent
2f02a52a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
ApiServices.cs
AutoTurnOver.Services/ApiServices.cs
+4
-0
appsettings.dev.json
ShortagePush/appsettings.dev.json
+2
-0
appsettings.json
ShortagePush/appsettings.json
+1
-0
appsettings.prod.json
ShortagePush/appsettings.prod.json
+2
-0
No files found.
AutoTurnOver.Services/ApiServices.cs
View file @
5a49f551
...
...
@@ -496,6 +496,8 @@ namespace AutoTurnOver.Services
private
static
ShortagePush_ResponseDto
ShortagePushApi
(
ShortagePush_RequestDto
data
)
{
string
url
=
ConfigHelper
.
GetValue
(
"PPS_ShortagePush"
);
string
url2
=
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
)
...
...
@@ -544,6 +546,8 @@ namespace AutoTurnOver.Services
private
static
ShortagePush_ResponseDto
ReturnGoodsPushApi
(
ShortagePush_RequestDto
data
)
{
string
url
=
ConfigHelper
.
GetValue
(
"PPS_ShortagePush"
);
string
url2
=
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
)
...
...
ShortagePush/appsettings.dev.json
View file @
5a49f551
...
...
@@ -3,6 +3,8 @@
"Default"
:
"server=gz-cdb-kp7s5i79.sql.tencentcdb.com;port=61691;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
},
"Pams_GetAccountToken"
:
"http://pams.bailuntec.com/Api/GetAccountToken"
,
"PPS_ShortagePush"
:
"http://bltpro.bailuntec.com/api/EbayTask/PushSkuEditQtyTask"
,
"PPS_ShortagePush2"
:
"http://pps.bailuntec.com/Api/AutoOperation/skutask/pushskueditqtytask"
,
"PPS_Return_GoodsPush"
:
""
,
"redis"
:
{
"HostName"
:
"127.0.0.1"
,
...
...
ShortagePush/appsettings.json
View file @
5a49f551
...
...
@@ -10,5 +10,6 @@
"Defaultdatabase"
:
"0"
},
"PPS_ShortagePush"
:
"http://bltpro.bailuntec.com/api/EbayTask/PushSkuEditQtyTask"
,
"PPS_ShortagePush2"
:
"http://pps.bailuntec.com/Api/AutoOperation/skutask/pushskueditqtytask"
,
"PPS_Return_GoodsPush"
:
""
}
ShortagePush/appsettings.prod.json
View file @
5a49f551
...
...
@@ -3,5 +3,6 @@
"Default"
:
"server=10.0.8.15;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
},
"PPS_ShortagePush"
:
"http://10.0.6.8:8002/api/EbayTask/PushSkuEditQtyTask"
,
"PPS_ShortagePush2"
:
"http://10.0.0.27:5051/skutask/pushskueditqtytask"
,
"PPS_Return_GoodsPush"
:
""
}
\ No newline at end of file
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