public function __construct() { //判断如果不是从微信端访问微信页面则跳转到对应端的首页 from_to_weixin(); parent::__construct(); $config = C("WEIXIN_CONFIG"); $this->wxappid = $config['wxappid']; $this->mch_id = $config['mch_id']; $this->appsecret = $config['appsecret']; $this->KEY = $config['KEY']; $this->SSLCERT_PATH = $config['SSLCERT_PATH']; $this->SSLKEY_PATH = $config['SSLKEY_PATH']; $this->CA_PATH = $config['CA_PATH']; }
public function __construct() { //判断如果不是从微信端访问微信页面则跳转到对应端的首页 from_to_weixin(); parent::__construct(); }