新增参数
This commit is contained in:
parent
4dd470767a
commit
6d2a37365e
|
|
@ -72,9 +72,9 @@ public class AliyunPushApi {
|
|||
// String deviceIds = getUserDevices(String.valueOf(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");
|
||||
} else if("ANDROID".equals(pushList.getPhoneType().toUpperCase())) {
|
||||
} else if("ANDROID".equalsIgnoreCase(pushList.getPhoneType())) {
|
||||
allQuary.eq(TblAliyunDeviceInfo::getPhoneType,"ANDROID");
|
||||
}
|
||||
List<TblAliyunDeviceInfo> pushUserDevices = aliyunDeviceInfoService.list(allQuary);
|
||||
|
|
@ -83,6 +83,7 @@ public class AliyunPushApi {
|
|||
pushRequest.setAppKey(Long.parseLong(iosAppKey));
|
||||
} else {
|
||||
pushRequest.setAppKey(Long.parseLong(androidAppKey));
|
||||
pushRequest.setAndroidNotificationChannel("1");
|
||||
}
|
||||
//推送目标:
|
||||
//DEVICE:根据设备推送
|
||||
|
|
|
|||
Loading…
Reference in New Issue