Commit 54b16b0c authored by jianghaiming's avatar jianghaiming

update:set

parent d3a4b355
<?php
namespace Daemon;
use Api\PhpServices\Daemon\DaemonServiceInterface;
use App\Models\marketing\mysql\Marketing;
class Marketing implements DaemonServiceInterface
{
const EXPIRE_DATA = 86400;
public function __construct(int $mid)
{
$this->mid = $mid;
}
public function run()
{
sleep(2);
$orderData = [
'online_status' => 1,
'end_time[<]' => date("Y-m-d H:i:s",time())
];
$orderInfoList = Marketing::getMarketingList($orderData);
foreach ($orderInfoList as $key => $value) {
$where = [];
$where['marketing_id'] = !empty($value['marketing_id']) ? $value['marketing_id'] : '';
$colums = [
'online_status' => 3,
];
Marketing::updateRecord($colums, $where);
}
}
}
\ No newline at end of file
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