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
ae08abe1
Commit
ae08abe1
authored
Jun 19, 2023
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改零推送发生异常,需要推送消息
parent
161ed523
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
ApiServices.cs
AutoTurnOver.Services/ApiServices.cs
+3
-3
ReportServices.cs
AutoTurnOver.Services/ReportServices.cs
+1
-0
Program.cs
ShortagePush/Program.cs
+1
-1
appsettings.prod.json
ShortagePush/appsettings.prod.json
+3
-1
No files found.
AutoTurnOver.Services/ApiServices.cs
View file @
ae08abe1
...
...
@@ -574,7 +574,7 @@ namespace AutoTurnOver.Services
}
catch
(
Exception
ex
)
{
ApiServices
.
QiYeJiQiRenMsPush
(
new
QiYeJiQiRenMsDto
{
msgtype
=
"text"
,
text
=
new
QiYeJiQiRenMsDto
.
text_dto
{
content
=
" 改0推送异常 :"
+
ex
.
Message
}
});
throw
;
}
...
...
@@ -664,9 +664,9 @@ namespace AutoTurnOver.Services
return
result
;
}
public
static
void
QiYeJiQiRenMsPush
(
QiYeJiQiRenMsDto
data
)
public
static
void
QiYeJiQiRenMsPush
(
QiYeJiQiRenMsDto
data
,
string
key
=
"QiYeJiQiRen"
)
{
string
url
=
ConfigHelper
.
GetValue
(
"QiYeJiQiRen"
);
string
url
=
ConfigHelper
.
GetValue
(
key
);
string
resultStr
=
HttpHelper
.
Request
(
url
,
RequestType
.
POST
,
data
.
ToJson
(),
timeout
:
1000
*
60
*
60
*
24
,
entype
:
"application/json"
);
}
...
...
AutoTurnOver.Services/ReportServices.cs
View file @
ae08abe1
...
...
@@ -558,6 +558,7 @@ namespace AutoTurnOver.Services
}
catch
(
Exception
ex
)
{
ApiServices
.
QiYeJiQiRenMsPush
(
new
QiYeJiQiRenMsDto
{
msgtype
=
"text"
,
text
=
new
QiYeJiQiRenMsDto
.
text_dto
{
content
=
" 改0推送异常 :"
+
ex
.
Message
}
});
Console
.
WriteLine
(
ex
.
Message
);
Console
.
WriteLine
(
ex
.
StackTrace
);
}
...
...
ShortagePush/Program.cs
View file @
ae08abe1
...
...
@@ -22,7 +22,7 @@ namespace ShortagePush
//new ReportServices().ShortagePushEbay(true, true);
//new ReportServices().ShortagePushEbay(true);
//new ReportServices().ReturnGoodsPush();
//new ReportServices().ShortagePush
Ebay
();
//new ReportServices().ShortagePush();
//new ReportServices().PPSReturnGoodsPush("walmart");
//new ReportServices().ShortagePushEbay(true);
...
...
ShortagePush/appsettings.prod.json
View file @
ae08abe1
...
...
@@ -13,5 +13,6 @@
"pps-sys"
:
{
"review"
:
"https://pps.bailuntec.com/Api/amazon/analyze/Download/GetReviewInfoBy"
,
"pps_sell_product"
:
"http://pps.bailuntec.com/WalmartApi/Publish/GetWithSellProductAsync"
}
},
"QiYeJiQiRen"
:
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5fa4c1d5-ce65-4e8a-9ae9-a0d689a13b65"
}
\ 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