diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index e2c82902..c248b9e2 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -14,6 +14,8 @@ class Licheb extends HD_Controller { parent::__construct(); $this->log_file = 'licheb.log'; + $this->load->model('receiver/receiver_customers_model', 'mdCustomers'); + $this->load->model('receiver/receiver_customers_visit_model', 'mdCustomersVisit'); } /** @@ -31,8 +33,6 @@ class Licheb extends HD_Controller echo '[0]点过后才会开始执行客户待回访[' . $hour . ']'; return; } - $this->load->model('receiver/receiver_customers_model', 'mdCustomers'); - $this->load->model('receiver/receiver_customers_visit_model', 'mdCustomersVisit'); $size = 100;//每次最多处理多少条 $rds = intval($this->input->get('rds')); $redis = &load_cache('redis'); @@ -105,8 +105,6 @@ class Licheb extends HD_Controller echo '[23]点过后才会更新客户等级[' . $hour . ']'; return; } - $this->load->model('receiver/receiver_customers_model', 'mdCustomers'); - $this->load->model('receiver/receiver_customers_visit_model', 'mdCustomersVisit'); $size = 100;//每次最多处理多少条 $rds = intval($this->input->get('rds')); $redis = &load_cache('redis');