Esempio n. 1
0
	public function __construct(){
		
		

		parent::__construct();

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			$where['token']=$this->token;
		$kefu=M('Kefu')->where($where)->find();
		$this->assign('kefu',$kefu);

		$this->assign('wecha_id',$this->wecha_id);

		$this->Zhaopin_model=M('Zhaopin');

		
		

		



	}
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     //普通活动或者现场活动
     $this->act_type = $this->_get('act_type', 'intval');
     $this->shake_model = M('Shake');
 }
Esempio n. 3
0
	public function __construct(){

		

		parent::__construct();

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			$where['token']=$this->token;
		
		$this->assign('wecha_id',$this->wecha_id);

		$this->Yingyong_model=M('Yingyong');

	
		

		



	}
Esempio n. 4
0
	public function __construct(){

		

		parent::__construct();
		if($this->_get('wecha_id')){
			$cover = 0;
		}else{
			$cover = 1;
		}
		$this->assign('cover',$cover);

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			$where['token']=$this->token;

		$this->assign('wecha_id',$this->wecha_id);
     



	}
Esempio n. 5
0
	public function __construct(){

		parent::__construct();

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			
		$this->assign('wecha_id',$this->wecha_id);

		$this->scene_model=M('Scene');
		$this->scene_addtp=M('scene_addtp');


	}
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct();
     $this->token = $this->_get('token');
     $this->reply_info_model = M('reply_info');
     $thisInfoConfig = $this->reply_info_model->where(array('infotype' => 'message', 'token' => $this->token))->find();
     $detailConfig = unserialize($thisInfoConfig['config']);
     $this->needCheck = intval($detailConfig['needcheck']);
     $this->needpass = intval($detailConfig['needpass']);
     $this->sepTime = 60;
     $this->wecha_id = $this->_get('wecha_id');
     $this->assign('wecha_id', $this->wecha_id);
     $this->assign('needCheck', $this->needCheck);
     $this->assign('needpass', $this->needpass);
     $this->assign('token', $this->token);
 }
Esempio n. 7
0
	public function __construct(){
		 $agent = $_SERVER['HTTP_USER_AGENT'];
        if(!strpos($agent,"icroMessenger")) {
            echo '此功能只能在微信浏览器中使用';exit;
        }

		

		parent::__construct();

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			$where['token']=$this->token;
		$kefu=M('Kefu')->where($where)->find();
		$this->assign('kefu',$kefu);

		$this->assign('wecha_id',$this->wecha_id);

		$this->Zhaopin_model=M('Zhaopin');

		
		

		



	}