作者 刘锟

合并分支 'akun' 到 'master'

Akun



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