Browse Source

Merge branch 'phoenix'

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

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

@ -74,14 +74,6 @@ class GoodsActivityService implements GoodsActivityServiceInterface
return ErrorCode::GOODS_ACTIVITY_BUY; 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; return true;
} }

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

@ -57,14 +57,6 @@ class GoodsService implements GoodsServiceInterface
return ErrorCode::GOODS_RESTRICT_LIMIT; 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; return true;
} }

Loading…
Cancel
Save