private void redirect(DocMessageBean msg) {
    boolean hit = false;
    DocumentListItem document = null;
    if (mDocList != null && mDocList.size() > 0) {
      for (DocumentListItem item : mDocList) {
        if (item.getDocumentId().equals(msg.getDocID())) {
          hit = true;
          document = item;
          break;
        }
      }
    }

    if (hit) {
      // 跳转公文详情
      Intent intent = new Intent();
      intent.putExtra(DocConstants.KEY_DOCUMENT_LIST_ITEM, document);
      intent.setClass(getActivity(), DocDetailActivity.class);
      getActivity().startActivity(intent);
    } else {
      if (isConsult(msg)) {
        DocUtils.requestGetConsultationFile(getActivity(), this, msg.getDocID());
      } else {
        Intent intent = new Intent(getActivity(), DocTraceDetailActivity.class);
        intent.putExtra(DocConstants.KEY_COMMON_ID, msg.getDocID());
        intent.putExtra(DocConstants.KEY_DOC_NAME, "");
        getActivity().startActivity(intent);
      }
    }
  }
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    if (mRootView == null) {
      mRootView = inflater.inflate(R.layout.doc_fragment_message, container, false);
      curPage = 0;
      initViews(mRootView);
    } else {
      ((ViewGroup) mRootView.getParent()).removeView(mRootView);
    }
    if (DocGlobalVars.getInstance().me != null) {
      // // 每次请求。
      // DocGlobalVars.getInstance().showProgressDialog(getActivity(), "",
      // "正在获取消息,请稍后...");
      // // new GetAccountPushHistoryTask().execute();
      // new GetAccountPushHistoryByIsReadTask().execute("1");
    } else {
      DocUtils.verifyLoginState(getActivity());
    }

    return mRootView;
  }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   DocUtils.verifyLoginState(getActivity());
 }