新增参数

This commit is contained in:
yan.y 2024-01-05 14:00:38 +08:00
parent 4dd470767a
commit 6d2a37365e
2 changed files with 15 additions and 14 deletions

View File

@ -72,9 +72,9 @@ public class AliyunPushApi {
// String deviceIds = getUserDevices(String.valueOf(pushList.getUserId())); // String deviceIds = getUserDevices(String.valueOf(pushList.getUserId()));
//查询所有 //查询所有
LambdaQueryWrapper<TblAliyunDeviceInfo> allQuary = new QueryWrapper<TblAliyunDeviceInfo>().lambda().eq(TblAliyunDeviceInfo::getUserId, pushList.getUserId()); LambdaQueryWrapper<TblAliyunDeviceInfo> allQuary = new QueryWrapper<TblAliyunDeviceInfo>().lambda().eq(TblAliyunDeviceInfo::getUserId, pushList.getUserId());
if ("IOS".equals(pushList.getPhoneType().toUpperCase())) { if ("IOS".equalsIgnoreCase(pushList.getPhoneType())) {
allQuary.eq(TblAliyunDeviceInfo::getPhoneType,"iOS"); allQuary.eq(TblAliyunDeviceInfo::getPhoneType,"iOS");
} else if("ANDROID".equals(pushList.getPhoneType().toUpperCase())) { } else if("ANDROID".equalsIgnoreCase(pushList.getPhoneType())) {
allQuary.eq(TblAliyunDeviceInfo::getPhoneType,"ANDROID"); allQuary.eq(TblAliyunDeviceInfo::getPhoneType,"ANDROID");
} }
List<TblAliyunDeviceInfo> pushUserDevices = aliyunDeviceInfoService.list(allQuary); List<TblAliyunDeviceInfo> pushUserDevices = aliyunDeviceInfoService.list(allQuary);
@ -83,6 +83,7 @@ public class AliyunPushApi {
pushRequest.setAppKey(Long.parseLong(iosAppKey)); pushRequest.setAppKey(Long.parseLong(iosAppKey));
} else { } else {
pushRequest.setAppKey(Long.parseLong(androidAppKey)); pushRequest.setAppKey(Long.parseLong(androidAppKey));
pushRequest.setAndroidNotificationChannel("1");
} }
//推送目标 //推送目标
//DEVICE:根据设备推送 //DEVICE:根据设备推送