Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjh5
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
gjjh5
Commits
188cd1d2
Commit
188cd1d2
authored
Jun 10, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notify
parent
051d79b9
Pipeline
#8632
passed with stage
in 6 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
task.js
app/controller/task.js
+0
-5
partner.js
app/service/partner.js
+1
-1
No files found.
app/controller/task.js
View file @
188cd1d2
...
...
@@ -143,12 +143,7 @@ class TaskController extends Controller {
insertData
.
appKey
=
appKey
;
delete
insertData
.
code
;
await
service
.
storage
.
write
(
insertData
);
await
service
.
cache
.
set
({
key
:
taskId
,
value
:
taskNote
,
});
await
service
.
partner
.
notice
(
order
);
return
;
}
catch
(
err
)
{
ctx
.
logger
.
error
(
'handleCallback'
,
JSON
.
stringify
(
err
),
JSON
.
stringify
(
result
));
taskNote
=
{
...
...
app/service/partner.js
View file @
188cd1d2
...
...
@@ -112,7 +112,7 @@ class PartnerService extends Service {
});
if
((
appKey
===
'2A1B338EA5DC489BBFFBCBB4708EF875'
||
appKey
===
'99C5C908336048EBBE3AC95F65AC9FEC'
||
appKey
===
'E0191124612C4CD3ACC82867EA6AB7CE'
)
&&
ctx
.
app
.
notifyMap
&&
ctx
.
app
.
notifyMap
.
get
(
appKey
))
{
const
secondNotifyUrl
=
ctx
.
app
.
notifyMap
.
get
(
appKey
).
notifyUrl
;
if
(
secondNotifyUrl
)
{
if
(
secondNotifyUrl
&&
(
notifyUrl
!==
secondNotifyUrl
)
)
{
const
appRet
=
await
ctx
.
curl
(
secondNotifyUrl
,
{
charset
:
'utf-8'
,
timeout
:
[
30000
,
30000
],
...
...
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