| | |
| | | * @param json
|
| | | * @return
|
| | | */
|
| | | public static int singlePushXiaoMi(MessageInfo info, JSONObject json, PushRecord pushRecord) {
|
| | | if (Constant.IS_TEST)
|
| | | return 1;
|
| | | public static int singlePushXiaoMi(MessageInfo info, JSONObject json,List<String> regIds, PushRecord pushRecord) {
|
| | | // if (Constant.IS_TEST)
|
| | | // return 1;
|
| | |
|
| | | JSONObject mapXm = JSONObject.fromObject(json);
|
| | |
|
| | | String android = XiaoMiPushUtil.singlePushAndroidForXM(info, mapXm, null);
|
| | | String android = XiaoMiPushUtil.singlePushAndroidForXM(info, mapXm,regIds, null);
|
| | |
|
| | | LogHelper.userInfo("安卓推送测试:" + android);
|
| | | pushRecord.setAndroidPushId(android);
|