|
|
@@ -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'])) . '秒后再下单');
|
|
|
}
|