admin
2021-05-28 98cc34dbca6d6218ec5e72baffda2d3a1dd72a55
app/src/main/java/com/tejia/lijin/app/ui/main/MessageFragment.java
@@ -154,7 +154,7 @@
        initView(view);
        addListener();
        spkefu = getActivity().getSharedPreferences("kefurecord", Context.MODE_PRIVATE);//是否打开过客服  记录
        if (sp.getBoolean("isLogin", false)) {//登陆显示消息中心红包弹窗
        if (UserUtil.isLogin(getContext())) {//登陆显示消息中心红包弹窗
            getMSGConfig();//消息中心红包
        }
    }
@@ -308,8 +308,6 @@
        ll_request_failture = view.findViewById(R.id.ll_request_failture);
        tv_no_data_hint = view.findViewById(R.id.tv_no_data_hint);
        iv_no_data = view.findViewById(R.id.iv_no_data);
        tv_no_data_hint.setText("还没有消息~");
        iv_no_data.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.ic_no_friends));
        view.findViewById(R.id.tv_net_setting).setOnClickListener(this);
        view.findViewById(R.id.tv_refresh).setOnClickListener(this);
@@ -410,7 +408,7 @@
        mChangeHelper.registerReceiver();
        getMessage();
        getUnReadMsgCount();
        boolean isLogin = sp.getBoolean("isLogin", false);
        boolean isLogin = UserUtil.isLogin(getContext());
        if (!isLogin) { //判断未登陆  隐藏清空按钮和 去旧版
            if (iv_top_bar_clear.getVisibility() == View.VISIBLE | tv_top_bar_right.getVisibility() == View.VISIBLE) {
                iv_top_bar_clear.setVisibility(View.GONE);
@@ -456,7 +454,7 @@
     * 获取主页消息列表
     */
    private void getMessage() {
        final boolean isLogin = sp.getBoolean("isLogin", false);
        final boolean isLogin =UserUtil.isLogin(getContext());
        ((MainActivity) getActivity()).getMessageMain(new MainActivity.getHomeMsgListListener() {
            @Override
            public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws JSONException, ParseException {
@@ -570,7 +568,7 @@
    @Override
    public void onClick(View v) {
        boolean isLogin = sp.getBoolean("isLogin", false);
        boolean isLogin =UserUtil.isLogin(getContext());
        switch (v.getId()) {
            case R.id.fl_order_notice: {
                if (!LoginAndInviteStatusUtil.acessNext(getContext(), UserUtil.getUid(getContext()) , true))
@@ -727,7 +725,7 @@
     * 展示红包等级福利提示Dialog
     */
    private void showHintDialog(RedPacketHintDialog.Builder builder, final JSONObject floatImgDetail) {
        final boolean isLogin = getContext().getSharedPreferences("user", Context.MODE_PRIVATE).getBoolean("isLogin", false);
        final boolean isLogin = UserUtil.isLogin(getContext());
        mPresenter.showHintDialog(builder, floatImgDetail, accountLogin, isLogin);
    }
@@ -799,7 +797,7 @@
                    mPresenter.setMSGConfig_jumpDetailnull(builder);
                } else {
                    String showTime = floatImgDetail.optString("showTime");
                    final boolean isLogin = sp.getBoolean("isLogin", false);
                    final boolean isLogin = UserUtil.isLogin(getContext());
                    //是否是当天当月当年
                    if (showTime.equalsIgnoreCase("everyday") && mPresenter.isSameDay(new Date(System.currentTimeMillis()), new Date(sp.getLong("redPacketHintmsg", 0l)))) {
                        return;