示例#1
0
 public function init()
 {
     set_time_limit(0);
     $config = ApiVisitorConfig::cache(1);
     foreach ($config as $k => $v) {
         if (!$v['range']) {
             $this->config[$k] = $v;
         }
     }
     parent::init();
 }
示例#2
0
 public function init()
 {
     set_time_limit(0);
     $config = ApiVisitorConfig::cache(1);
     //只要月更新的配置
     $this->config = [];
     foreach ($config as $k => $v) {
         if ($v['range']) {
             $this->config[$v['type']] = $v;
         }
     }
     parent::init();
 }