Commit dba439cf by 王昆

gsb

parent 1f243d91
......@@ -447,22 +447,24 @@ class BpoSDPJApi {
url: settings.apiconfig.payDomain() + "/merchant/order/transfer",
data: param,
});
let resData = {amt: system.f2y(cashInfo.amt)};
if (rs.data.code === 0) {
cashInfo.trade_status = "01";
cashInfo.trade_desc = "提现申请成功";
await cashInfo.save();
return this.getSuccessResult("提现成功", {amt: system.f2y(cashInfo.amt)});
this.ccashinfoSve.formatStatus(resData, cashInfo);
return this.getSuccessResult("提现成功", resData);
} else {
cashInfo.trade_status = "02";
cashInfo.trade_desc = rs.data.msg || "提现申请失败";
await cashInfo.save();
return this.getBaseResult(1, cashInfo.trade_desc);
this.ccashinfoSve.formatStatus(resData, cashInfo);
return this.getSuccessResult(cashInfo.trade_desc, resData);
}
console.log(rs.data);
return this.getCodeResult(rs.data.msg);
} catch (error) {
console.log(error);
// 发起失败,删除trade
return this.getErrResult("接口异常");
}
}
......
......@@ -63,7 +63,8 @@ var settings = {
if (settings.env == "dev") {
return "http://39.106.185.66:8000";
} else {
return "https://pay.gongsibao.com";
// return "https://pay.gongsibao.com";
return "http://39.106.185.66:8000";
}
},
opLogUrl: function () {
......
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