Browse Source

当面付回调

master
weigang 5 years ago
parent
commit
8a2465ae74
  1. 8
      app/Service/v3/Implementations/UserService.php

8
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();
}
Loading…
Cancel
Save