From fcd15c1a5fc065760b0b25ef953594a92b958b91 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Fri, 3 Mar 2023 19:40:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=9C=AA=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E2=80=9C=E6=96=B0=E9=B2=9C=E2=80=9D=E8=AE=A2=E5=8D=95=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Logic/Order/OrderCreate.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/Services/Logic/Order/OrderCreate.php b/app/Services/Logic/Order/OrderCreate.php index 685a2961..65461ece 100644 --- a/app/Services/Logic/Order/OrderCreate.php +++ b/app/Services/Logic/Order/OrderCreate.php @@ -13,7 +13,6 @@ use App\Models\Package as PackageModel; use App\Models\Reward as RewardModel; use App\Models\User as UserModel; use App\Models\Vip as VipModel; -use App\Repos\Order as OrderRepo; use App\Repos\Package as PackageRepo; use App\Services\Logic\Service as LogicService; use App\Traits\Client as ClientTrait; @@ -59,14 +58,7 @@ class OrderCreate extends LogicService $orderValidator->checkItemType($post['item_type']); - $orderRepo = new OrderRepo(); - - $order = $orderRepo->findUserLastPendingOrder($user->id, $post['item_id'], $post['item_type']); - - /** - * 存在新鲜的未支付订单直接返回(减少订单记录) - */ - if ($order) return $order; + $order = null; if ($post['item_type'] == OrderModel::ITEM_COURSE) {