Commit 5ba25a04 by 宋毅

tj

parent db6da460
...@@ -350,7 +350,7 @@ class utilsTlBankSve { ...@@ -350,7 +350,7 @@ class utilsTlBankSve {
result = "回调cusorderid参数错误,没有_标识"; result = "回调cusorderid参数错误,没有_标识";
return result; 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 = { var p = {
"actionProcess": "actionProcess参数不", "actionProcess": "actionProcess参数不",
"actionType": "receiveCallBackNotify", "actionType": "receiveCallBackNotify",
...@@ -360,7 +360,7 @@ class utilsTlBankSve { ...@@ -360,7 +360,7 @@ class utilsTlBankSve {
var qftstr = await this.restClient.execPost(p, this.centerChannelUrl + "web/payment/paymentApi/springBoard"); var qftstr = await this.restClient.execPost(p, this.centerChannelUrl + "web/payment/paymentApi/springBoard");
var qftjson = JSON.parse(qftstr.stdout); var qftjson = JSON.parse(qftstr.stdout);
if (qftjson.status > -1) { if (qftjson.status > -1) {
result = "success" result = "success";
} }
return result; return result;
} else { } else {
......
...@@ -28,14 +28,11 @@ module.exports = function (app) { ...@@ -28,14 +28,11 @@ module.exports = function (app) {
app.use("/api/tl/zxNotify", async function (req, res, next) { app.use("/api/tl/zxNotify", async function (req, res, next) {
var client_ip = System.get_client_ip(req); 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); var result = await utilstlbankSve.receiveCallBackNotify(req.body, client_ip);
res.end(result); res.end(result);
}); });
app.get('/api/:qname/:method', function (req, res) { app.get('/api/:qname/:method', function (req, res) {
var classPath = req.params["qname"]; var classPath = req.params["qname"];
var methodName = req.params["method"]; var methodName = req.params["method"];
var params = []; var params = [];
...@@ -55,8 +52,8 @@ app.get('/api/:qname/:method', function (req, res) { ...@@ -55,8 +52,8 @@ app.get('/api/:qname/:method', function (req, res) {
p.then(r => { p.then(r => {
res.end(JSON.stringify(r)); res.end(JSON.stringify(r));
}) })
}); });
app.post('/api/:qname/:method', function (req, res) { app.post('/api/:qname/:method', function (req, res) {
var classPath = req.params["qname"]; var classPath = req.params["qname"];
var methodName = req.params["method"]; var methodName = req.params["method"];
var params = []; var params = [];
...@@ -74,5 +71,5 @@ app.post('/api/:qname/:method', function (req, res) { ...@@ -74,5 +71,5 @@ app.post('/api/:qname/:method', function (req, res) {
}).then(() => { }).then(() => {
}); });
}); });
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment