Commit 920f4d7c authored by suntengda's avatar suntengda

update 拼单活动通知

parent 64f4f005
...@@ -15,7 +15,7 @@ class Pindan implements DaemonServiceInterface ...@@ -15,7 +15,7 @@ class Pindan implements DaemonServiceInterface
public function run() public function run()
{ {
//只在16:40执行逻辑 //只在16:40执行逻辑
if(date('H') != 16 || date('i')!= 40) { if(date('H') != 17 || date('i')!= 30) {
sleep(5); sleep(5);
return false; return false;
} }
...@@ -47,7 +47,10 @@ class Pindan implements DaemonServiceInterface ...@@ -47,7 +47,10 @@ class Pindan implements DaemonServiceInterface
]; ];
//发送消息 //发送消息
Msg::send(999, $app_id, $template_id, $page_url, $type, $params); Msg::send(999, $app_id, $template_id, $page_url, $type, $params);
DaemonLog::info(
'DaemonServiceInterface_pindan',
'send at '.date('Y-m-d H:i:s').' params:'.json_encode($params)
);
sleep(60);//保证16:40只执行一次 sleep(60);//保证16:40只执行一次
}catch (Exception $e) { }catch (Exception $e) {
DaemonLog::info( DaemonLog::info(
......
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