Commit 786da8ce authored by luhongguang's avatar luhongguang

update: config调整

parent eac4daa5
...@@ -23,9 +23,11 @@ class PindanActivityColonelConfigService ...@@ -23,9 +23,11 @@ class PindanActivityColonelConfigService
{ {
$date = $params["date"]; $date = $params["date"];
$today = date("Y-m-d"); $today = date("Y-m-d");
if ($date <= $today) { $hour = date("H");
if ($date < $today || ($date == $today && $hour >= 12)) {
throw new MarketingException(['cus' => MarketingException::COLONEL_DATE_ERROR]); throw new MarketingException(['cus' => MarketingException::COLONEL_DATE_ERROR]);
} }
$type = empty($params["type"]) ? ColonelDistributorConfig::TYPE_COLONEL : $params["type"]; $type = empty($params["type"]) ? ColonelDistributorConfig::TYPE_COLONEL : $params["type"];
$configList = $params["config"]; $configList = $params["config"];
$marketingId = $params["marketing_id"]; $marketingId = $params["marketing_id"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment