12345678910111213141516171819202122232425262728293031323334353637 |
- <?php defined('BASEPATH') OR exit('No direct script access allowed');
- /**
- * 此列一般在执行 24个小时中的一个 时候执行一次
- */
- class QueueOne extends Start_Controller {
- public function __construct(){
- parent::__construct();
- $this->load->_model("Model_zztmpdata",'zztmpdata');
- $this->load->_model("Model_logic_crm",'logic_crm');
- $this->load->_model("Model_logic_u9action",'logic_u9action') ;
- }
- private $ip = ['127.0.0.1','47.105.156.18'];
- //定义方法的调用规则 获取URI第二段值
- public function _remap($arg,$arg_array)
- {
- $ip = $_SERVER['REMOTE_ADDR'];
- if(!in_array($ip,$this->ip)){
- exit("Unauthorized access");
- }
- if($arg == 'u9action')//
- {
- $this->_u9action();
- }
-
- else
- {
- return ;
- }
- }
-
- private function _u9action(){
- if(date("H",time()) == '5'){
- $this->logic_u9action->u9action();
- }
-
- }
- }
|