Browse Source

添加详细上下文参数

master
Mike 5 years ago
parent
commit
b3ebc2c126
  1. 2
      app/Service/v3/Implementations/AppointmentTimeService.php

2
app/Service/v3/Implementations/AppointmentTimeService.php

@ -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 = [];

Loading…
Cancel
Save