private void getAppIndexMore(String dateType, String pageNo3) {
   isLoad = false;
   Log.d("zkk", "---type" + dateType);
   // http://api.moeju.cn//painting/originalList?lastId=&lastTime=0&dk=5ed40069e20354be&ak=~68EECA63-0FB4-1EB8-628D-CDCF663CEB41&v=2.1.0&os=a&channel=Xiaomi
   MengquApi.getInstance()
       .getShare(dateType, pageNo3, "5ed40069e20354be", "~68EECA63-0FB4-1EB8-628D-CDCF663CEB41")
       .subscribeOn(Schedulers.io())
       .observeOn(AndroidSchedulers.mainThread())
       .subscribe(observer2);
 }
  private void getAppIndexData(int dateType, int pageNo3) {

    shares.clear();
    ShareBean list = null;
    if (type == 4) {
      if (!Utils.isNull(SharePreferences.getInstance(context).getShareDaily())) {
        Gson gson = new Gson();
        list =
            gson.fromJson(SharePreferences.getInstance(context).getShareDaily(), ShareBean.class);
        shares.addAll(list.getData());
        paintAdapter.notifyDataSetChanged();
      }
    } else if (type == 5) {
      if (!Utils.isNull(SharePreferences.getInstance(context).getShareTucao())) {
        Gson gson = new Gson();
        list =
            gson.fromJson(SharePreferences.getInstance(context).getShareTucao(), ShareBean.class);
        shares.addAll(list.getData());
        paintAdapter.notifyDataSetChanged();
      }
    } else if (type == 6) {
      if (!Utils.isNull(SharePreferences.getInstance(context).getShareFanju())) {
        Gson gson = new Gson();
        list =
            gson.fromJson(SharePreferences.getInstance(context).getShareFanju(), ShareBean.class);
        shares.addAll(list.getData());
        paintAdapter.notifyDataSetChanged();
      }
    } else if (type == 3) {
      if (!Utils.isNull(SharePreferences.getInstance(context).getShareCos())) {
        Gson gson = new Gson();
        list = gson.fromJson(SharePreferences.getInstance(context).getShareCos(), ShareBean.class);
        shares.addAll(list.getData());
        paintAdapter.notifyDataSetChanged();
      }
    }

    if (list != null && list.getData() != null && list.getData().size() > 0) {
      lastId = list.getData().get(list.getData().size() - 1).getId() + "";
      lastTime = list.getData().get(list.getData().size() - 1).getCreateTime() + "";
    }

    Log.d("zkk", "---type" + dateType);
    // http://api.moeju.cn//painting/originalList?lastId=&lastTime=0&dk=5ed40069e20354be&ak=~68EECA63-0FB4-1EB8-628D-CDCF663CEB41&v=2.1.0&os=a&channel=Xiaomi
    MengquApi.getInstance()
        .getShare(dateType + "", "", "5ed40069e20354be", "~68EECA63-0FB4-1EB8-628D-CDCF663CEB41")
        .subscribeOn(Schedulers.io())
        .observeOn(AndroidSchedulers.mainThread())
        .subscribe(observer);
  }