| | |
| | | if (!StringUtil.isNullOrEmpty(acceptData.getDevice()) && !StringUtil.isNullOrEmpty(deviceToken)) {
|
| | | DeviceTokenIOS deviceTokenIOS = iosPushService.getDeviceTokenByDevice(acceptData.getDevice());
|
| | | if (deviceTokenIOS == null)
|
| | | iosPushService.addDeviceToken(null, deviceToken, acceptData.getDevice());
|
| | | iosPushService.addDeviceToken(null, Integer.parseInt(acceptData.getVersion()), deviceToken,
|
| | | acceptData.getDevice());
|
| | | else {
|
| | | deviceTokenIOS.setDeviceToken(deviceToken);
|
| | | iosPushService.updateDeviceToken(deviceTokenIOS);
|
| | |
| | | if (!StringUtil.isNullOrEmpty(deviceToken))
|
| | | deviceTokenIOS.setDeviceToken(deviceToken);
|
| | | deviceTokenIOS.setUid(uid);
|
| | | deviceTokenIOS.setVersion(Integer.parseInt(acceptData.getVersion()));
|
| | | iosPushService.updateDeviceToken(deviceTokenIOS);
|
| | | } else {
|
| | | iosPushService.addDeviceToken(uid, deviceToken, acceptData.getDevice());
|
| | | iosPushService.addDeviceToken(uid, Integer.parseInt(acceptData.getVersion()), deviceToken,
|
| | | acceptData.getDevice());
|
| | | }
|
| | | }
|
| | | }
|