Commit 63e5bcfd by 王昆

gsb

parent 9799f0b1
......@@ -244,13 +244,11 @@ class BpoSDPJApi {
* TODO:需要线上测试
*/
let doAuthRes =await this.doAuth({id_name:this.trim(obj.id_name),id_no:this.trim(obj.id_no), app_id:obj.app_id});
console.log("调用二要素 (兰伯望) 接口返回:"+JSON.stringify(doAuthRes));
if(true){
await this.doSign3(ccashinfo);
if (doAuthRes.status !== 0) {
return this.getBaseResult(1, doAuthRes.msg || "姓名或身份证错误");
}
console.log("调用二要素 (兰伯望) 接口返回:"+JSON.stringify(doAuthRes));
this.doSign3(ccashinfo);
//异步推送信息
pushAsync(obj);
......@@ -323,6 +321,11 @@ class BpoSDPJApi {
await this.redisLock.lock(key, id, 20);
let result = await this.econtractSve.autoSignBankTwo(params);
await this.redisLock.unLock(key, id);
if (result.data && result.data.contractId) {
cashInfo.contract_id = result.data.contractId;
cashInfo.save();
}
return result;
} catch (e) {
console.log(e, cashInfo, "-----------------------签约异常-----------------------");
......
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