Commit abbccd6d authored by luhongguang's avatar luhongguang

update:营销活动状态

parent b9844c31
...@@ -760,7 +760,9 @@ class MarketingService ...@@ -760,7 +760,9 @@ class MarketingService
public static function updateMarketingOnlineStatus($params) public static function updateMarketingOnlineStatus($params)
{ {
$marketingId = $params["marketing_id"]; $marketingId = $params["marketing_id"];
$marketingType = $params["marketing_type"];
$onlineStatus = Marketing::ONLINE_STATUS_DAOQI; $onlineStatus = Marketing::ONLINE_STATUS_DAOQI;
$endTime = date("Y-m-d H:i:s");
if ($params["online_status"] == Marketing::ONLINE_STATUS_QIDONG) { if ($params["online_status"] == Marketing::ONLINE_STATUS_QIDONG) {
$onlineStatus = Marketing::ONLINE_STATUS_QIDONG; $onlineStatus = Marketing::ONLINE_STATUS_QIDONG;
$endTime = date("Y-m-d H:i:s", strtotime("+7 day")); $endTime = date("Y-m-d H:i:s", strtotime("+7 day"));
...@@ -773,7 +775,7 @@ class MarketingService ...@@ -773,7 +775,7 @@ class MarketingService
'online_status' => $onlineStatus, 'online_status' => $onlineStatus,
'end_time' => $endTime, 'end_time' => $endTime,
]; ];
Marketing::updateRecord($marketingParams, ["marketing_id" => $marketingId]); Marketing::updateRecord($marketingParams, ["marketing_id" => $marketingId, "marketing_type" => $marketingType]);
} }
/** /**
......
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