session->get('cashInfo'); if(!$cashInfo){ echo json_encode(['code'=> 2,'msg' =>'请重新登录']);die; } parent::init(); } }