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
394476b8
Commit
394476b8
authored
Mar 04, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
54943b58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+1
-1
center-channel/app/config/routes/api.js
+10
-5
No files found.
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
394476b8
...
...
@@ -332,7 +332,7 @@ class UtilsOrderService extends AppServiceBase {
}
//日志记录
this
.
logCtl
.
info
({
optitle
:
(
new
Date
()).
Format
(
"yyyy-MM-dd hh:mm:ss"
)
+
":,method="
+
parmas
.
trxcode
,
optitle
:
(
new
Date
()).
Format
(
"yyyy-MM-dd hh:mm:ss"
)
+
"
记录回调参数
:,method="
+
parmas
.
trxcode
,
op
:
"center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js/receiveCallBackNotify"
,
content
:
JSON
.
stringify
(
parmas
),
clientIp
:
client_ip
||
""
...
...
center-channel/app/config/routes/api.js
View file @
394476b8
var
url
=
require
(
"url"
);
var
system
=
require
(
"../../base/system"
);
var
utilsAuthSve
=
system
.
getObject
(
"service.utilsSve.utilsAuthSve"
);
const
utilsAuthSve
=
system
.
getObject
(
"service.utilsSve.utilsAuthSve"
);
const
logCtl
=
system
.
getObject
(
"service.common.oplogSve"
);
module
.
exports
=
function
(
app
)
{
//-----------------------新的模式------------------开始
app
.
use
(
'/tlpay/notify'
,
function
(
req
,
res
)
{
var
client_ip
=
system
.
get_client_ip
(
req
);
var
utilsOrderSve
=
system
.
getObject
(
"service.utilsSve.utilsOrderSve"
);
var
p
=
utilsOrderSve
.
receiveCallBackNotify
(
req
.
body
,
client_ip
);
p
.
then
(
r
=>
{
res
.
end
(
JSON
.
stringify
(
r
));
var
client_ip
=
System
.
get_client_ip
(
req
);
var
result
=
await
utilsOrderSve
.
receiveCallBackNotify
(
req
.
body
,
client_ip
);
logCtl
.
info
({
optitle
:
(
new
Date
()).
Format
(
"yyyy-MM-dd hh:mm:ss"
)
+
"记录回调处理结果:,method="
+
req
.
body
.
trxcode
,
op
:
"center-channel/tlpay/notify"
,
content
:
"回调参数:"
+
JSON
.
stringify
(
req
.
body
)
+
"回调结果:"
+
JSON
.
stringify
(
result
),
clientIp
:
client_ip
||
""
});
res
.
end
(
result
);
});
app
.
all
(
"/web/*"
,
async
function
(
req
,
res
,
next
)
{
...
...
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