1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-30 22:24:55 +08:00

去除未支付“新鲜”订单检查

This commit is contained in:
xiaochong0302 2023-03-03 19:40:59 +08:00
parent df9d77cad2
commit fcd15c1a5f

View File

@ -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) {