<?php namespace Payment\Controller; use Think\Controller; /** * 打款功能基类 * @author */ class BaseController extends Controller { protected function _initialize(){ // parent::__construct(); $this->companyinfo = session('payment_user'); if (empty(session('payment_user'))) { redirect(U('Public/login')); } } }