Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
73a692f2
Commit
73a692f2
authored
May 19, 2022
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新接口
parent
cf72ac3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
center-channel/app/config/routes/api.js
+9
-11
No files found.
center-channel/app/config/routes/api.js
View file @
73a692f2
...
...
@@ -27,18 +27,16 @@ module.exports = function (app) {
});
app
.
use
(
'/tlpay/aliPayNotify'
,
async
function
(
req
,
res
)
{
//钉钉接入的搁浅
try
{
var
client_ip
=
system
.
get_client_ip
(
req
);
var
result
=
await
utilsOrderSve
.
opH5AliDingPayBackNotify
(
req
.
body
,
client_ip
);
logCtl
.
info
({
optitle
:
(
new
Date
()).
Format
(
"yyyy-MM-dd hh:mm:ss"
)
+
"记录阿里钉钉支付回调处理结果"
,
op
:
"center-channel/tlpay/aliPayNotify"
,
content
:
"支付回调处理结果:"
+
JSON
.
stringify
(
result
),
clientIp
:
client_ip
||
""
});
if
(
result
.
status
!=
0
)
{
return
res
.
end
(
"FAIL"
);
if
(
!
req
.
body
.
key
)
{
return
res
.
end
({
code
:
-
200
,
message
:
"缺少加签秘钥key参数"
});
}
return
res
.
end
(
"success"
);
if
(
!
req
.
body
.
obj
)
{
return
res
.
end
({
code
:
-
200
,
message
:
"缺少obj参数"
});
}
let
obj
=
req
.
body
.
obj
;
let
key
=
req
.
body
.
key
;
let
result
=
await
signSve
.
createSign
(
obj
,
key
);
return
res
.
end
(
JSON
.
stringify
(
result
));
}
catch
(
error
)
{
logCtl
.
error
({
optitle
:
(
new
Date
()).
Format
(
"yyyy-MM-dd hh:mm:ss"
)
+
"阿里钉钉支付回调处理异常"
,
...
...
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