Commit c9ad4512 by 庄冰

pay

parent 7d588461
......@@ -14,6 +14,7 @@ class OrderService extends ServiceBase {
this.fqReqUrl = "https://yunfuapi.gongsibao.com";//线上域名
// this.fqReqUrl = "https://yunfuapi-dev.gongsibao.com";//dev域名
this.restClient = system.getObject("util.restClient");
this.appDao = system.getObject("db.dbapp.appDao");
}
async addOrderAndDelivery(action_body, pobj, req) {
......@@ -817,11 +818,13 @@ class OrderService extends ServiceBase {
async checkPayStatusTl(obj) {//通联支付状态验证
var wxPayOrderCode = obj.wxPayOrderCode || "";
var aliPayOrderCode = obj.aliPayOrderCode || "";
var app = obj.app;
var comanyId = obj.company_id;
var app = await this.appDao.findOne({
where:{uAppId:comanyId},raw:true
});
if(!app){
return system.getResultFail(-100, "渠道参数错误");
}
var comanyId = app.uAppId;
var opType = obj.op_type;
var orderCode = obj.orderCode;
if (!wxPayOrderCode || !aliPayOrderCode || !comanyId || !opType || !orderCode) {
......
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