作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !2179
@@ -34,7 +34,11 @@ class HyStockData extends Command @@ -34,7 +34,11 @@ class HyStockData extends Command
34 34
35 public function handle() 35 public function handle()
36 { 36 {
37 - $this->get_stock(); 37 + $hour = date('H');
  38 + if ($hour >= 9 && $hour <= 15) {
  39 + //每天9~16点之间更新股票数据
  40 + $this->get_stock();
  41 + }
38 } 42 }
39 43
40 public function get_stock() 44 public function get_stock()