From ab4f6531dd22b50b5e70551f6e638f2d783a6ff7 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期四, 26 九月 2019 11:56:11 +0800 Subject: [PATCH] 金币领取限制 --- fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceActiveServiceImpl.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceActiveServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceActiveServiceImpl.java index d645020..17868de 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceActiveServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/DeviceActiveServiceImpl.java @@ -58,6 +58,10 @@ updateDeviceActive.setDeviceToken(deviceActive.getDeviceToken()); updateDeviceActive.setDeviceTokenMd5(StringUtil.Md5(deviceActive.getDeviceToken())); } + + if (StringUtil.isNullOrEmpty(da.getMac())) + updateDeviceActive.setImei(deviceActive.getMac()); + deviceActiveMapper.updateByPrimaryKeySelective(updateDeviceActive); } -- Gitblit v1.8.0