|
|
|
@ -23,6 +23,7 @@ class UserService implements UserServiceInterface |
|
|
|
public function isPlatformNewUser($userId, $globalOrderId): bool |
|
|
|
{ |
|
|
|
return !OrderMain::query() |
|
|
|
->withTrashed() |
|
|
|
->where(['user_id' => $userId]) |
|
|
|
->where('global_order_id', '!=', $globalOrderId) |
|
|
|
->whereIn('state', OrderState::FINISH) |
|
|
|
|