|
|
@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.cloud.kicc.common.core.exception.CheckedException; |
|
|
|
import com.cloud.kicc.common.core.exception.CheckedException; |
|
|
|
import com.cloud.kicc.commonbiz.api.entity.*; |
|
|
|
import com.cloud.kicc.commonbiz.api.entity.*; |
|
|
|
|
|
|
|
import com.cloud.kicc.commonbiz.api.enums.MessageTypeEnum; |
|
|
|
import com.cloud.kicc.commonbiz.api.enums.PushAuditStatusEnum; |
|
|
|
import com.cloud.kicc.commonbiz.api.enums.PushAuditStatusEnum; |
|
|
|
import com.cloud.kicc.commonbiz.mapper.PushConcernFanMapper; |
|
|
|
import com.cloud.kicc.commonbiz.mapper.PushConcernFanMapper; |
|
|
|
import com.cloud.kicc.commonbiz.service.*; |
|
|
|
import com.cloud.kicc.commonbiz.service.*; |
|
|
@ -124,7 +125,8 @@ public class PushConcernFanServiceImpl extends ServiceImpl<PushConcernFanMapper, |
|
|
|
.orElse(new PushRingtone()).getRingtone()); |
|
|
|
.orElse(new PushRingtone()).getRingtone()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
pushChatMessage.setType("customizedcast"); |
|
|
|
pushChatMessage.setType(MessageTypeEnum.COMMON.getValue()); |
|
|
|
|
|
|
|
pushChatMessage.setPushType("customizedcast"); |
|
|
|
pushChatMessage.setDisplayType("notification"); |
|
|
|
pushChatMessage.setDisplayType("notification"); |
|
|
|
pushChatMessage.setAliasType(PushClientUtil.uPushUserAliasType); |
|
|
|
pushChatMessage.setAliasType(PushClientUtil.uPushUserAliasType); |
|
|
|
pushChatMessage.setAlias(alias); |
|
|
|
pushChatMessage.setAlias(alias); |
|
|
@ -136,10 +138,11 @@ public class PushConcernFanServiceImpl extends ServiceImpl<PushConcernFanMapper, |
|
|
|
custom.put("playSound", BooleanUtil.toBoolean(pushChatMessage.getPlaySound())); |
|
|
|
custom.put("playSound", BooleanUtil.toBoolean(pushChatMessage.getPlaySound())); |
|
|
|
custom.put("playVibrate", BooleanUtil.toBoolean(pushChatMessage.getPlayVibrate())); |
|
|
|
custom.put("playVibrate", BooleanUtil.toBoolean(pushChatMessage.getPlayVibrate())); |
|
|
|
custom.put("playLights", BooleanUtil.toBoolean(pushChatMessage.getPlayLights())); |
|
|
|
custom.put("playLights", BooleanUtil.toBoolean(pushChatMessage.getPlayLights())); |
|
|
|
|
|
|
|
custom.put("type", pushChatMessage.getType()); |
|
|
|
pushChatMessage.setCustom(custom.toString()); |
|
|
|
pushChatMessage.setCustom(custom.toString()); |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
jsonObject.put("production_mode", PushClientUtil.PRODUCTION_MODE); |
|
|
|
jsonObject.put("production_mode", PushClientUtil.PRODUCTION_MODE); |
|
|
|
jsonObject.put("type", pushChatMessage.getType()); |
|
|
|
jsonObject.put("type", pushChatMessage.getPushType()); |
|
|
|
jsonObject.put("description", pushChatMessage.getRemarks()); |
|
|
|
jsonObject.put("description", pushChatMessage.getRemarks()); |
|
|
|
jsonObject.put("alias_type", pushChatMessage.getAliasType()); |
|
|
|
jsonObject.put("alias_type", pushChatMessage.getAliasType()); |
|
|
|
jsonObject.put("alias", pushChatMessage.getAlias()); |
|
|
|
jsonObject.put("alias", pushChatMessage.getAlias()); |
|
|
|