Commit 576564ed by 王昆

测试代码添加

parent f4002af6
...@@ -8,6 +8,7 @@ const fs = require("fs"); ...@@ -8,6 +8,7 @@ const fs = require("fs");
const xlsx = require('node-xlsx') const xlsx = require('node-xlsx')
var moment = require('moment') var moment = require('moment')
const uuidv1 = require('uuid/v1'); const uuidv1 = require('uuid/v1');
const axios = require("axios");
class TestApi { class TestApi {
constructor() { constructor() {
this.utilesignbaoSve = System.getObject("service.utilesignbaoSve"); this.utilesignbaoSve = System.getObject("service.utilesignbaoSve");
...@@ -17,6 +18,31 @@ class TestApi { ...@@ -17,6 +18,31 @@ class TestApi {
this.redisLock = System.getObject("util.redisLock"); this.redisLock = System.getObject("util.redisLock");
} }
async test1234(obj) {
for (let i = 0; i < obj.num; i++) {
try {
let rs = await axios({
method: 'post',
url: "https://bpohhr.gongsibao.com/api/econtractApi/checkSign",
data: {
"mtchId": "1289134089538224129",
"userList": [
{
"idName": "金丽芬",
"idNo": "32042119740315542X"
}
]
},
});
console.log(`--------------------rs[${i}]------------`, JSON.stringify(rs.data));
} catch (e) {
console.error(e);
break;
}
}
}
// async test34() { // async test34() {
// let b4 = { // let b4 = {
// name: "范戎凯", // name: "范戎凯",
......
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