Commit 422bea8c by 宋毅

tj

parent d65d999f
......@@ -91,8 +91,7 @@ class UtilsOrderService extends AppServiceBase {
pobj.actionBody.returl = this.tlPayNotifyUrl;
pobj.actionType = "getH5PayUrl";
var url = this.centerAppPayUrl;
var result = await this.restPostUrl(pobj, url);
var result = await this.restPostUrl(pobj, this.centerAppPayUrl);
if (result.status != 0) {
return result;
}
......@@ -140,8 +139,7 @@ class UtilsOrderService extends AppServiceBase {
pobj.actionBody.op_type = actionBody.opType;
pobj.actionType = "getOrderQrCode";
var getQrCodeUrl = this.centerAppUrl + "payment/paymentApi/getQrCode";
var result = await this.restPostUrl(pobj, getQrCodeUrl);
var result = await this.restPostUrl(pobj, this.centerAppPayUrl);
if (result.status != 0) {
return result;
}
......@@ -201,9 +199,8 @@ class UtilsOrderService extends AppServiceBase {
var payTrxid = opType == "wx" ? receiptVoucher.wxPayOrderCode : receiptVoucher.aliPayOrderCode;
pobj.actionBody.trxid = payTrxid;
pobj.actionType = "queryOrderStatus";
var url = this.centerAppUrl + "payment/paymentApi/queryOrder";
var payStatus = await this.restPostUrl(pobj, url);
var payStatus = await this.restPostUrl(pobj, this.centerAppPayUrl);
if (payStatus.data && payStatus.data.trxstatus == "0000") {
//TODO:处理支付成功的业务逻辑
......@@ -254,8 +251,8 @@ class UtilsOrderService extends AppServiceBase {
if (actionBody.op_type != "wx" && actionBody.op_type != "alipay") {
return system.getResult(null, "actionBody.op_type param error");
}
var url = this.centerAppUrl + "payment/paymentApi/getQrCode";
return await this.restPostUrl(pobj, url);
return await this.restPostUrl(pobj, this.centerAppPayUrl);
}
/**
* 只是检查支付状态--不跟订单关联
......@@ -266,8 +263,8 @@ class UtilsOrderService extends AppServiceBase {
if (!actionBody.trxid) {
return system.getResult(null, "actionBody.trxid can not be empty");
}
var url = this.centerAppUrl + "payment/paymentApi/queryOrder";
return await this.restPostUrl(pobj, url);
return await this.restPostUrl(pobj, this.centerAppPayUrl);
}
async receiveCallBackNotify(pobj, actionBody) {//---暂时没有用到
var url = this.centerAppUrl + "payment/paymentApi/receiveCallBackNotify";
......
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