From a7ebe5e664e287a4474f5136d379cef1ccafde68 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Thu, 17 Sep 2020 19:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=99=9A=E8=90=A5=E4=B8=9A=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/GoodsActivityService.php | 8 -------- app/Service/v3/Implementations/GoodsService.php | 8 -------- 2 files changed, 16 deletions(-) diff --git a/app/Service/v3/Implementations/GoodsActivityService.php b/app/Service/v3/Implementations/GoodsActivityService.php index 1bbd217..20b60ca 100644 --- a/app/Service/v3/Implementations/GoodsActivityService.php +++ b/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; } diff --git a/app/Service/v3/Implementations/GoodsService.php b/app/Service/v3/Implementations/GoodsService.php index bf240f3..6dab9de 100644 --- a/app/Service/v3/Implementations/GoodsService.php +++ b/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; }