Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
taxh5
Project
Project
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
data_server
taxh5
Commits
86ac2a73
Commit
86ac2a73
authored
May 07, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taxh5 test
parent
f9ff2018
Pipeline
#7058
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
partner.js
app/service/partner.js
+4
-2
No files found.
app/service/partner.js
View file @
86ac2a73
...
...
@@ -125,9 +125,11 @@ class PartnerService extends Service {
async
notice
(
order
)
{
const
{
ctx
,
service
}
=
this
;
const
{
orderId
,
notifyUrl
,
userId
}
=
order
;
ctx
.
logger
.
info
(
'【notice】order------'
,
order
);
const
{
orderId
,
notifyUrl
,
userId
,
notice
}
=
order
;
const
dbRes
=
await
service
.
order
.
getOneByOrderId
({
orderId
,
notice
:
1
});
if
(
!
dbRes
&&
notifyUrl
)
{
ctx
.
logger
.
info
(
'【notice】dbRes------'
,
dbRes
);
if
(
!
dbRes
&&
notifyUrl
&&
notice
!==
'1'
)
{
try
{
const
ret
=
await
ctx
.
curl
(
notifyUrl
,
{
charset
:
'utf-8'
,
...
...
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