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
d33de19a
Commit
d33de19a
authored
Jan 12, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
payback
parent
1c47eea2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
igirl-channel/app/base/service/impl/dborder/orderSve.js
+4
-1
igirl-channel/app/config/routes/api.js
+9
-0
No files found.
igirl-channel/app/base/service/impl/dborder/orderSve.js
View file @
d33de19a
...
...
@@ -853,7 +853,6 @@ class OrderService extends ServiceBase {
}
async
receiveTlCallBackNotify
(
obj
)
{
//接收通联支付回调通知
if
(
obj
&&
obj
.
trxstatus
==
"0000"
)
{
obj
.
client_ip
=
""
;
let
attachList
=
[];
if
(
obj
.
cusorderid
.
indexOf
(
"_"
)
>=
0
)
{
attachList
=
obj
.
cusorderid
.
split
(
"_"
);
...
...
@@ -872,6 +871,10 @@ class OrderService extends ServiceBase {
if
(
!
app
){
return
system
.
getResultFail
(
-
100
,
"渠道参数错误"
);
}
var
resultSign
=
await
this
.
resultSign
(
obj
,
app
.
appSecret
);
if
(
!
resultSign
||
resultSign
.
status
<
0
){
return
resultSign
;
}
var
orderInfo
=
await
this
.
dao
.
model
.
findOne
({
where
:{
orderNo
:
obj
.
out_trade_no
,
app_id
:
app
.
id
},
raw
:
true
...
...
igirl-channel/app/config/routes/api.js
View file @
d33de19a
var
url
=
require
(
"url"
);
var
system
=
require
(
"../../base/system"
);
module
.
exports
=
function
(
app
)
{
app
.
use
(
'/tlpay/notify'
,
function
(
req
,
res
)
{
var
client_ip
=
system
.
get_client_ip
(
req
);
req
.
body
[
"client_ip"
]
=
client_ip
;
var
orderSve
=
system
.
getObject
(
"service.dborder.orderSve"
);
var
p
=
orderSve
.
receiveTlCallBackNotify
(
req
.
body
);
p
.
then
(
r
=>
{
res
.
end
(
JSON
.
stringify
(
r
));
});
});
app
.
get
(
'/:gname/:qname/:method'
,
function
(
req
,
res
)
{
var
classPath
=
req
.
params
[
"qname"
];
var
methodName
=
req
.
params
[
"method"
];
...
...
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