From 30a6347998c58ce2c57c8074350c0e63f01c48bd Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 23 九月 2019 10:43:43 +0800 Subject: [PATCH] 设备活跃增加mac地址记录 --- 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