From aba192810c97b03ca3ca4aef1d44f0b60aa243e8 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期五, 17 四月 2020 17:41:47 +0800 Subject: [PATCH] 队员脱离 + 自动发圈不替换价格系信息 --- fanli/src/main/java/com/yeshi/fanli/util/push/PushUtils.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/push/PushUtils.java b/fanli/src/main/java/com/yeshi/fanli/util/push/PushUtils.java index 3b723a1..8c287bd 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/push/PushUtils.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/push/PushUtils.java @@ -105,6 +105,27 @@ } } + public static int singlePushXiaoMiByRegisterId(MessageInfo info, JSONObject json, PushRecord pushRecord, + String regId) { + if (Constant.IS_TEST) + return 1; + + JSONObject mapXm = JSONObject.fromObject(json); + + List<String> regIdList = new ArrayList<>(); + regIdList.add(regId); + String android = XiaoMiPushUtil.pushBatchAndroidForXM(info, mapXm, regIdList); + + LogHelper.userInfo("瀹夊崜鎺ㄩ�佹祴璇曪細" + android); + pushRecord.setAndroidPushId(android); + + if (android != null) { + return 1; + } else { + return 4; + } + } + /** * IOS 鍗曟帹 * -- Gitblit v1.8.0