/** 根据用户名查询用户的其他信息 */
  void queryUserInfomation() {
    queryUser = new BmobQuery<>();
    query.addWhereEqualTo("username", MyApplication.getCurrentName());
    queryUser.findObjects(
        view.getContext(),
        new FindListener<User>() {
          @Override
          public void onSuccess(List<User> list) {
            headPictureUrl = list.get(0).getPicture().getFileUrl(view.getContext());

            new LoadUserTask().execute();
          }

          @Override
          public void onError(int i, String s) {}
        });
  }
  /** 判断记录是否为空并且查询数据 */
  void judgeAndquery() {
    query = new BmobQuery<DemandObject>();
    al = new ArrayList<>();
    query.addWhereEqualTo("publishMan", MyApplication.getCurrentName());
    query.count(
        view.getContext(),
        DemandObject.class,
        new CountListener() {
          @Override
          public void onSuccess(int i) {
            if (i > 0) {
              querydata();
            } else {
              progressDialog.dismiss();
              Toast.makeText(view.getContext(), "你还没有捐赠物品,赶紧去捐赠物品吧☺", Toast.LENGTH_LONG).show();
              swipeLayout.setRefreshing(false);
            }
          }

          @Override
          public void onFailure(int i, String s) {}
        });
  }