|
|
|
@ -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; |
|
|
|
} |
|
|
|
|
|
|
|
|