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(); }
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(); }