| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | */ |
| | | private void addPushDataToMemoryList(JPushMessageInfoBean jPushMessageInfoBean) { |
| | | try { |
| | | boolean isPushAddCache = SharedPreUtils.getBoolean("pushAddCache"); |
| | | if (!isPushAddCache) { |
| | | //有可能删除推送Token接口失败,换账号后,依然也会收到上次账号的推送; |
| | | return; |
| | | } |
| | | if (TextUtils.isEmpty(jPushMessageInfoBean.getExpantContent())) { |
| | | return; |
| | | } |