diff --git a/platformbiz/biz_order.py b/platformbiz/biz_order.py index 7594ed8..f3288d4 100644 --- a/platformbiz/biz_order.py +++ b/platformbiz/biz_order.py @@ -98,7 +98,8 @@ async def add_pay_order(sor, sellerid, } await sor.C('biz_orderdetail', ns1) amount += order_detail.trans_amount - + price_infos = await get_price_infos( + ns = { "id": id, "customerid":customerid, @@ -113,3 +114,4 @@ async def add_pay_order(sor, sellerid, "origin_orderid":origin_orderid } await sor.C('biz_order', ns) + diff --git a/platformbiz/pb_acc.py b/platformbiz/pb_acc.py index f4156da..9304886 100644 --- a/platformbiz/pb_acc.py +++ b/platformbiz/pb_acc.py @@ -33,6 +33,7 @@ class PlatformBizAcc: self.business_op = biz_order.business_op get_business_date = get_serverenv('get_business_date') self.curdate = await get_business_date(sor) + self.transamt = biz_order.amount transfee = await get_transfee(sor, self.resellerid, biz_order.amount, self.curdate) self.variable = { "交易金额":biz_order.amount,