wjc
1 天以前 e0a5ebeb7ab4480a89cc22bc1093cea71046edd7
app/src/main/java/com/hdl/photovoltaic/other/HdlJpushLogic.java
@@ -11,6 +11,7 @@
import com.hdl.photovoltaic.jpush.JPushMessageInfoBean;
import com.hdl.photovoltaic.ui.BPowerStationActivity;
import com.hdl.photovoltaic.ui.bean.MessageBean;
import com.hdl.photovoltaic.utils.SharedPreUtils;
import com.hdl.sdk.link.core.bean.eventbus.BaseEventBus;
import org.greenrobot.eventbus.EventBus;
@@ -49,7 +50,7 @@
    public void JpushPushCommonData(Context context, JPushMessageInfoBean jPushMessageInfoBean, boolean isOpened) {
        if (UserConfigManage.getInstance().isBAccount()) {
            //添加推送数据到缓存列表中;
            this.addPushDataToMemoryList(jPushMessageInfoBean);
//            this.addPushDataToMemoryList(jPushMessageInfoBean);
            if (isOpened) {
                //安装商跳转界面
                Intent intent = new Intent(context, BPowerStationActivity.class);
@@ -100,6 +101,11 @@
     */
    private void addPushDataToMemoryList(JPushMessageInfoBean jPushMessageInfoBean) {
        try {
            boolean isPushAddCache = SharedPreUtils.getBoolean("pushAddCache");
            if (!isPushAddCache) {
                //有可能删除推送Token接口失败,换账号后,依然也会收到上次账号的推送;
                return;
            }
            if (TextUtils.isEmpty(jPushMessageInfoBean.getExpantContent())) {
                return;
            }