1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-28 13:21:37 +08:00

去除不必要的deliver阻断

This commit is contained in:
xiaochong0302 2025-03-19 15:06:01 +08:00
parent 9b0700e5c1
commit 21f9bdd4b1

View File

@ -58,8 +58,6 @@ class DeliverTask extends Task
case OrderModel::ITEM_VIP:
$this->handleVipOrder($order);
break;
default:
$this->noMatchedHandler($order);
}
$order->status = OrderModel::STATUS_FINISHED;
@ -155,11 +153,6 @@ class DeliverTask extends Task
$this->closePendingOrders($user->id);
}
protected function noMatchedHandler(OrderModel $order)
{
throw new \RuntimeException("No Matched Handler For Order: {$order->id}");
}
protected function closePendingOrders($userId)
{
$orders = $this->findUserPendingOrders($userId);