Commit f6421a19 by 王昆

gsb

parent 45cbbc91
...@@ -6,7 +6,7 @@ class XbgApi extends apiBase { ...@@ -6,7 +6,7 @@ class XbgApi extends apiBase {
constructor() { constructor() {
super(); super();
this.restClient = system.getObject("util.restClient"); this.restClient = system.getObject("util.restClient");
this.url = "https://bpohhr.gongsibao.com/api/xbgApi/"; this.url = "http://192.168.18.125:3000/api/xbgApi/";
// this.url = "https://bpohhr.gongsibao.com/api/xbgApi/"; // this.url = "https://bpohhr.gongsibao.com/api/xbgApi/";
this.testCompanyIds = 12; this.testCompanyIds = 12;
this.ecompanyId = '1103817785420820481'; this.ecompanyId = '1103817785420820481';
...@@ -230,11 +230,26 @@ class XbgApi extends apiBase { ...@@ -230,11 +230,26 @@ class XbgApi extends apiBase {
} }
let params = { let params = {
// idNo: "222403198301071778", idNo: "222403198301071778",
idNo: userInfo.id_card, // idNo: userInfo.id_card,
ecid: userlabour.ecid, ecid: 495,
// ecid: userlabour.ecid,
}; };
let rs = await this.restClient.execPost(params, this.url + "validLwbSign"); let rs = await this.restClient.execPost(params, this.url + "validLwbSign");
try {
rs = JSON.parse(rs.stdout);
if (rs.data) {
userlabour.apply_stauts = 60;
userlabour.contract_url = rs.data;
await userlabour.save();
return system.getResultSuccess(true);
}
return system.getResultSuccess(false);
} catch (e) {
console.log(e);
return system.getResult(null, "bpo接口错误");
}
return JSON.parse(rs.stdout); return JSON.parse(rs.stdout);
} catch (e) { } catch (e) {
console.log(e); console.log(e);
......
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