| | |
| | | * @throws Exception |
| | | */ |
| | | public static int allPushIOS(MessageInfo info, PushRecord pushRecord, String url, int type, |
| | | List<String> deviceTokenList) throws Exception { |
| | | List<String> deviceTokenList,String pwd) throws Exception { |
| | | |
| | | /* |
| | | * com.yeshi.fanli.entity.system.System b_IOS = |
| | |
| | | if (Constant.IS_TEST) |
| | | return 1; |
| | | |
| | | String IOS = IOSPushUtil.allPushIOS(deviceTokenList, info, url, type); |
| | | String IOS = IOSPushUtil.allPushIOS(deviceTokenList, info, url, type,pwd); |
| | | LogHelper.userInfo("IOS的推送日志:" + IOS); |
| | | pushRecord.setIosPushId(IOS); |
| | | |
| | |
| | | * @return |
| | | */ |
| | | public static String singlePushIOS(MessageInfo info, PushRecord pushRecord, String url, int type, |
| | | List<String> deviceTokenList) { |
| | | List<String> deviceTokenList, String pwd) { |
| | | if (Constant.IS_TEST) |
| | | return null; |
| | | if (deviceTokenList != null && deviceTokenList.size() > 0) { |
| | |
| | | try { |
| | | List<String> deviceList = new ArrayList<>(); |
| | | deviceList.add(deviceToken); |
| | | String IOS = IOSPushUtil.allPushIOS(deviceList, info, url, type); |
| | | String IOS = IOSPushUtil.allPushIOS(deviceList, info, url, type,pwd); |
| | | pushRecord.setIosPushId(IOS); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |