|
|
@ -38,7 +38,7 @@ class AppointmentTimeService implements AppointmentTimeServiceInterface |
|
|
$sotreIds = ShoppingCart::query()->whereIn('id',$shopcartIds)->pluck('store_id'); |
|
|
$sotreIds = ShoppingCart::query()->whereIn('id',$shopcartIds)->pluck('store_id'); |
|
|
$stores = Store::query()->whereIn('id',$sotreIds)->get()->toArray(); |
|
|
$stores = Store::query()->whereIn('id',$sotreIds)->get()->toArray(); |
|
|
if(empty($stores)){ |
|
|
if(empty($stores)){ |
|
|
$msg = ['id'=>$sotreIds]; |
|
|
|
|
|
|
|
|
$msg = ['sotreIds'=>$sotreIds,"shopcartIds"=>$shopcartIds]; |
|
|
throw new ErrorCodeException(ErrorCode::STORE_NOT_AVAILABLE,json_encode($msg)); |
|
|
throw new ErrorCodeException(ErrorCode::STORE_NOT_AVAILABLE,json_encode($msg)); |
|
|
} |
|
|
} |
|
|
$time1Arr = []; |
|
|
$time1Arr = []; |
|
|
|