Commit 383d07fb by zhaoxiqing

gsb

parent a5e3f9b5
......@@ -220,12 +220,12 @@ class MerchanttradeService extends ServiceBase {
} else if (0 > params.amount) {
return system.getResultFail(-1, "交易金额错误");
}
if (!params.trade_voucher) {
return system.getResultFail(-1, "请提供业务合同");
}
params.trade_type = 2; //线下充值
params.pay_type = 1; //线下支付
params.amount_type = 2;//后入
// if (!params.trade_voucher) {
// return system.getResultFail(-1, "请提供业务合同");
// }
params.trade_type = 2; //购买合同
params.pay_type = 1; //余额支付
params.amount_type = 2;//支出
params.amount = params.amount * 100;
var accountamount = await this.merchantaccountSve.findOne({merchant_id: params.merchant_id})
......
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