Commit 403bbdda by 王昆

gsb

parent 6675a4c5
...@@ -5,8 +5,22 @@ class TestApi { ...@@ -5,8 +5,22 @@ class TestApi {
} }
async testBankfour(obj) { async testBankfour(obj) {
let rs = await this.bmorderSve.bankfour(1868); let ids = obj.ids;
return rs; let result = [];
if (!ids) {
return result;
}
for (let id of ids) {
try {
let rs = await this.bmorderSve.bankfour(id);
result.push({id: id, rs: rs});
} catch (e) {
console.log(e.stack);
result.push({id: id, msg: e.message})
}
}
return result;
} }
} }
module.exports = TestApi; module.exports = TestApi;
\ No newline at end of file
...@@ -47,7 +47,7 @@ class BmorderService extends ServiceBase { ...@@ -47,7 +47,7 @@ class BmorderService extends ServiceBase {
userBankNo: biz.bankno, userBankNo: biz.bankno,
userMobile: biz.legal_mobile, userMobile: biz.legal_mobile,
nonceStr: nonceStr, nonceStr: nonceStr,
} };
// 签名 // 签名
var signArr = []; var signArr = [];
......
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