<?php
/**
  * @class 基类
  * @author soul
  */
class baseAction
{
	public $tokenInfo = null;

	public function __construct()
	{
		$this->tokenInfo = [
			'uid'=>$_SESSION['_userid'],
			'from'=>'PJD',
			'ip'=>LibFc::GetClientIp(),
			'devcode'=>session_id(),
			'port'=>$_SERVER['REMOTE_PORT']
		];
		$apiFun = mvc::$URL_CLASS.'/'.mvc::$URL_METHOD;
		$OthMonitor = new OthMonitor();
		$OthMonitor->checkPjDMainPass($apiFun, $this->tokenInfo);
	}

	//析构函数
	public function __destruct()
	{
		$OthMonitor = new OthMonitor();
		$OthMonitor->collMainTongji($this->tokenInfo);
	}
}