调试信用购订单结算
This commit is contained in:
parent
ea9384beea
commit
1520d31563
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
namespace app;
|
namespace app;
|
||||||
|
|
||||||
|
use crmeb\utils\DingTalk;
|
||||||
use think\db\exception\DataNotFoundException;
|
use think\db\exception\DataNotFoundException;
|
||||||
use think\db\exception\ModelNotFoundException;
|
use think\db\exception\ModelNotFoundException;
|
||||||
use think\db\exception\PDOException;
|
use think\db\exception\PDOException;
|
||||||
@ -81,6 +82,7 @@ class ExceptionHandle extends Handle
|
|||||||
else if ($e instanceof \EasyWeChat\Core\Exceptions\HttpException)
|
else if ($e instanceof \EasyWeChat\Core\Exceptions\HttpException)
|
||||||
return app('json')->fail($e->getMessage());
|
return app('json')->fail($e->getMessage());
|
||||||
|
|
||||||
|
DingTalk::exception($e, $request);
|
||||||
return parent::render($request, $e);
|
return parent::render($request, $e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,10 @@ class StoreGroupOrderRepository extends BaseRepository
|
|||||||
}, 'orderProduct', 'presellOrder']);
|
}, 'orderProduct', 'presellOrder']);
|
||||||
}, 'interest'])
|
}, 'interest'])
|
||||||
->order('create_time DESC')->find();
|
->order('create_time DESC')->find();
|
||||||
$interest = $order->interest->calculateInterest();
|
$interest = '0';
|
||||||
|
if (is_callable([$order->interest, 'calculateInterest'])) {
|
||||||
|
$interest = $order->interest->calculateInterest();
|
||||||
|
}
|
||||||
$order['interest']['total_amount'] = bcadd($order->interest->total_price, $interest, 2);
|
$order['interest']['total_amount'] = bcadd($order->interest->total_price, $interest, 2);
|
||||||
return $order;
|
return $order;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user