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
5ba25a04
Commit
5ba25a04
authored
Mar 02, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
db6da460
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
46 deletions
+43
-46
igirl-web/app/base/service/impl/utilstlbankSve.js
+2
-2
igirl-web/app/config/routes/api.js
+41
-44
No files found.
igirl-web/app/base/service/impl/utilstlbankSve.js
View file @
5ba25a04
...
...
@@ -350,7 +350,7 @@ class utilsTlBankSve {
result
=
"回调cusorderid参数错误,没有_标识"
;
return
result
;
}
if
(
attachList
[
0
]
&&
attachList
[
0
].
substr
(
0
,
3
)
==
"qft
"
)
{
if
(
(
attachList
[
0
]
&&
attachList
[
0
].
substr
(
0
,
3
)
==
"qft"
)
||
parmas
.
trxreserved
==
"h5paypagesywdy
"
)
{
var
p
=
{
"actionProcess"
:
"actionProcess参数不"
,
"actionType"
:
"receiveCallBackNotify"
,
...
...
@@ -360,7 +360,7 @@ class utilsTlBankSve {
var
qftstr
=
await
this
.
restClient
.
execPost
(
p
,
this
.
centerChannelUrl
+
"web/payment/paymentApi/springBoard"
);
var
qftjson
=
JSON
.
parse
(
qftstr
.
stdout
);
if
(
qftjson
.
status
>
-
1
)
{
result
=
"success"
result
=
"success"
;
}
return
result
;
}
else
{
...
...
igirl-web/app/config/routes/api.js
View file @
5ba25a04
...
...
@@ -28,51 +28,48 @@ module.exports = function (app) {
app
.
use
(
"/api/tl/zxNotify"
,
async
function
(
req
,
res
,
next
)
{
var
client_ip
=
System
.
get_client_ip
(
req
);
if
(
req
.
body
.
remark
&&
req
.
body
.
remark
==
"h5paypagesywdy"
){
res
.
end
(
""
);
}
var
result
=
await
utilstlbankSve
.
receiveCallBackNotify
(
req
.
body
,
client_ip
);
res
.
end
(
result
);
});
var
result
=
await
utilstlbankSve
.
receiveCallBackNotify
(
req
.
body
,
client_ip
);
res
.
end
(
result
);
});
app
.
get
(
'/api/:qname/:method'
,
function
(
req
,
res
)
{
var
classPath
=
req
.
params
[
"qname"
];
var
methodName
=
req
.
params
[
"method"
];
var
params
=
[];
console
.
log
(
classPath
);
console
.
log
(
methodName
);
console
.
log
(
"req.query"
);
console
.
log
(
req
.
query
);
for
(
let
k
in
req
.
query
)
{
params
.
push
(
req
.
query
[
k
]);
}
console
.
log
(
params
);
var
p
=
null
;
var
invokeObj
=
System
.
getObject
(
"api."
+
classPath
);
if
(
invokeObj
[
methodName
])
{
p
=
invokeObj
[
methodName
].
apply
(
invokeObj
,
params
);
}
p
.
then
(
r
=>
{
res
.
end
(
JSON
.
stringify
(
r
));
})
});
app
.
post
(
'/api/:qname/:method'
,
function
(
req
,
res
)
{
var
classPath
=
req
.
params
[
"qname"
];
var
methodName
=
req
.
params
[
"method"
];
var
params
=
[];
for
(
let
k
in
req
.
query
)
{
params
.
push
(
req
.
query
[
k
]);
}
params
.
push
(
req
.
body
);
var
p
=
null
;
var
invokeObj
=
System
.
getObject
(
"api."
+
classPath
);
if
(
invokeObj
[
methodName
])
{
p
=
invokeObj
[
methodName
].
apply
(
invokeObj
,
params
);
}
p
.
then
(
r
=>
{
res
.
end
(
JSON
.
stringify
(
r
));
}).
then
(()
=>
{
app
.
get
(
'/api/:qname/:method'
,
function
(
req
,
res
)
{
var
classPath
=
req
.
params
[
"qname"
];
var
methodName
=
req
.
params
[
"method"
];
var
params
=
[];
console
.
log
(
classPath
);
console
.
log
(
methodName
);
console
.
log
(
"req.query"
);
console
.
log
(
req
.
query
);
for
(
let
k
in
req
.
query
)
{
params
.
push
(
req
.
query
[
k
]);
}
console
.
log
(
params
);
var
p
=
null
;
var
invokeObj
=
System
.
getObject
(
"api."
+
classPath
);
if
(
invokeObj
[
methodName
])
{
p
=
invokeObj
[
methodName
].
apply
(
invokeObj
,
params
);
}
p
.
then
(
r
=>
{
res
.
end
(
JSON
.
stringify
(
r
));
})
});
app
.
post
(
'/api/:qname/:method'
,
function
(
req
,
res
)
{
var
classPath
=
req
.
params
[
"qname"
];
var
methodName
=
req
.
params
[
"method"
];
var
params
=
[];
for
(
let
k
in
req
.
query
)
{
params
.
push
(
req
.
query
[
k
]);
}
params
.
push
(
req
.
body
);
var
p
=
null
;
var
invokeObj
=
System
.
getObject
(
"api."
+
classPath
);
if
(
invokeObj
[
methodName
])
{
p
=
invokeObj
[
methodName
].
apply
(
invokeObj
,
params
);
}
p
.
then
(
r
=>
{
res
.
end
(
JSON
.
stringify
(
r
));
}).
then
(()
=>
{
});
});
});
};
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