From 8a2465ae7446e9495a3f1a84560670b14d9bf10e Mon Sep 17 00:00:00 2001 From: weigang Date: Wed, 9 Sep 2020 17:09:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E9=9D=A2=E4=BB=98=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/UserService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Service/v3/Implementations/UserService.php b/app/Service/v3/Implementations/UserService.php index 77cd6f2..e02b9de 100644 --- a/app/Service/v3/Implementations/UserService.php +++ b/app/Service/v3/Implementations/UserService.php @@ -36,12 +36,12 @@ class UserService implements UserServiceInterface { return !Order::query() ->join('lanzu_order_main as main', 'main.id', '=', 'lanzu_order.order_main_id') - ->where(['main.user_id' => $user_id, 'order.store_id' => $store_id, 'main.type' => OrderType::OFFLINE]) + ->where(['main.user_id' => $user_id, 'lanzu_order.store_id' => $store_id, 'main.type' => OrderType::OFFLINE]) ->whereIn('main.state', OrderState::FINISH) - ->where('order.created_at', '>=', strtotime(date('Y-m-d 00:00:00'))) - ->where('order.created_at', '<=', strtotime(date('Y-m-d 23:59:59'))) + ->where('lanzu_order.created_at', '>=', strtotime(date('Y-m-d 00:00:00'))) + ->where('lanzu_order.created_at', '<=', strtotime(date('Y-m-d 23:59:59'))) ->where('main.money', '>=', $limit_amount) - ->where('order.id', '!=', $current_order_id) + ->where('lanzu_order.id', '!=', $current_order_id) ->exists(); }