Browse Source

会员升级

Kirin 1 year ago
parent
commit
bd227f14d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/services/order/StoreOrderCreateServices.php

+ 1 - 1
app/services/order/StoreOrderCreateServices.php

@@ -233,7 +233,7 @@ class StoreOrderCreateServices extends BaseServices
         if ($orderInfo['total_price'] < sys_config('min_price', 0) && sys_config('min_price', 0) > 0) {
             throw new ValidateException('下单金额不低于' . sys_config('max_price'));
         }
-        $orderPre = $this->dao->search(['uid' => $uid, 'is_del' => 0, 'is_system_del' => 0])->order('add_time', 'desc')->find();
+        $orderPre = $this->dao->search(['uid' => $uid])->order('add_time', 'desc')->find();
         if ($orderPre && $orderPre['add_time'] > (time() - (sys_config('order_time', 0) * 60))) {
             throw new ValidateException('请等待' . ((sys_config('order_time', 0) * 60) - (time() - $orderPre['add_time'])) . '秒后再下单');
         }