Commit 1b604a67 authored by luhongguang's avatar luhongguang

Merge branch 'develop' of https://git.yidian-inc.com:8021/bp/goods into develop

parents 8f449421 1ddf3a63
......@@ -5,7 +5,8 @@ namespace Daemon;
use Api\PhpServices\Daemon\DaemonServiceInterface;
use App\Models\marketing\mysql\Marketing;
use App\Models\marketing\mysql\Marketing as MarketingDao;
use Api\PhpUtils\Log\FileLog;
class Marketing implements DaemonServiceInterface
{
......@@ -16,7 +17,8 @@ class Marketing implements DaemonServiceInterface
'online_status' => 1,
'end_time[<]' => date("Y-m-d H:i:s",time())
];
$orderInfoList = Marketing::getMarketingList($orderData);
$orderInfoList = MarketingDao::getMarketingList($orderData);
FileLog::info('DaemonServiceInterface_marketing', json_encode($orderInfoList));
foreach ($orderInfoList as $key => $value) {
$where = [];
$where['marketing_id'] = !empty($value['marketing_id']) ? $value['marketing_id'] : '';
......@@ -24,7 +26,7 @@ class Marketing implements DaemonServiceInterface
$colums = [
'online_status' => 3,
];
Marketing::updateRecord($colums, $where);
MarketingDao::updateRecord($colums, $where);
}
}
......
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