Browse Source

最晚营业时间

master
Lemon 5 years ago
parent
commit
a7ebe5e664
  1. 8
      app/Service/v3/Implementations/GoodsActivityService.php
  2. 8
      app/Service/v3/Implementations/GoodsService.php

8
app/Service/v3/Implementations/GoodsActivityService.php

@ -60,14 +60,6 @@ class GoodsActivityService implements GoodsActivityServiceInterface
return ErrorCode::GOODS_ACTIVITY_BUY;
}
//服务站最晚营业时间
if (env('APP_ENV') === 'prod') {
$closedTime = strtotime(config('market_rest_time'));
if(time() > $closedTime){
throw new ErrorCodeException(ErrorCode::MARKET_REST);
}
}
return true;
}

8
app/Service/v3/Implementations/GoodsService.php

@ -43,14 +43,6 @@ class GoodsService implements GoodsServiceInterface
return ErrorCode::GOODS_RESTRICT_LIMIT;
}
//服务站最晚营业时间
if (env('APP_ENV') === 'prod') {
$closedTime = strtotime(config('market_rest_time'));
if(time() > $closedTime){
throw new ErrorCodeException(ErrorCode::MARKET_REST);
}
}
return true;
}

Loading…
Cancel
Save