|
|
|
@ -22,8 +22,8 @@ class UserService implements UserServiceInterface |
|
|
|
$exist = OrderMain::query() |
|
|
|
->where(['user_id' => $user_id]) |
|
|
|
->where(function ($query){ |
|
|
|
$query->where('state', 'in', [OrderMain::ORDER_STATE_COMPLETE,OrderMain::ORDER_STATE_EVALUATED,OrderMain::ORDER_STATE_UNREFUND]) |
|
|
|
->orWhere('dm_state', 'in', [OrderMain::ORDER_STATE_UNTAKE,OrderMain::ORDER_STATE_DELIVERY]); |
|
|
|
$query->whereIn('state', [OrderMain::ORDER_STATE_COMPLETE,OrderMain::ORDER_STATE_EVALUATED,OrderMain::ORDER_STATE_UNREFUND]) |
|
|
|
->orWhereIn('dm_state', [OrderMain::ORDER_STATE_UNTAKE,OrderMain::ORDER_STATE_DELIVERY]); |
|
|
|
}) |
|
|
|
->exists(); |
|
|
|
|
|
|
|
|