6
0
Fork 0
release
panliang 2022-06-02 14:54:48 +08:00
parent 2be899662a
commit f7a2a9c29e
2 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,8 @@ class OrderProfitController extends AdminController
{
return Grid::make(OrderProfit::with(['order', 'user', 'fromUser']), function (Grid $grid) {
$grid->model()->latest('created_at');
$grid->disableViewButton(false);
$grid->column('order.sn');

View File

@ -113,12 +113,10 @@ class DistributeService
}
// 订单确认收货
if (!$order->isCompleted()) {
logger(1);
return false;
}
// 已经生成过返利记录
if ($order->profits()->exists()) {
logger(2);
return false;
}
// 订单超过售后期限