Commit b458aed6 authored by suntengda's avatar suntengda

update 拼单活动通知

parent 920f4d7c
...@@ -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') != 17 || date('i')!= 30) { if(date('H') != 16 || date('i')!= 40) {
sleep(5); sleep(5);
return false; return false;
} }
...@@ -53,7 +53,7 @@ class Pindan implements DaemonServiceInterface ...@@ -53,7 +53,7 @@ class Pindan implements DaemonServiceInterface
); );
sleep(60);//保证16:40只执行一次 sleep(60);//保证16:40只执行一次
}catch (Exception $e) { }catch (Exception $e) {
DaemonLog::info( DaemonLog::error(
'DaemonServiceInterface_pindan', 'DaemonServiceInterface_pindan',
'params:'.json_encode($params).' exception:'.$e->getMessage() 'params:'.json_encode($params).' exception:'.$e->getMessage()
); );
......
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