v1.1 小秘书通知消息 简转繁
This commit is contained in:
@@ -194,7 +194,7 @@ public class CustomerConversationListener implements ApplicationListener<Custome
|
||||
body.setData(this.buildAttach());
|
||||
|
||||
neteaseSendMsgBatchParam.setBody(body);
|
||||
neteaseSendMsgBatchParam.setContent("点击如下链接进行账号注销:\n账号注销>");
|
||||
neteaseSendMsgBatchParam.setContent("點擊如下鏈接進行賬號註銷:\n賬號註銷>");
|
||||
neteaseSendMsgBatchParam.setToAccids(Arrays.asList(String.valueOf(uid)));
|
||||
Payload payload = new Payload();
|
||||
payload.setSkiptype(Constant.SecretarySkipType.H5);
|
||||
@@ -217,8 +217,8 @@ public class CustomerConversationListener implements ApplicationListener<Custome
|
||||
attach.setFirst(Constant.DefineProtocol.CUSTOM_MESS_HEAD_SECRETARY);
|
||||
attach.setSecond(Constant.DefineProtocol.CUSTOM_MESS_SUB_SECRETARY_INTRACTION);
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("title", "账号注销>");
|
||||
jsonObject.put("msg", "温馨提示:注销之后您的账户信息都将清空无法恢复,已绑定的手机号码也不可重新注册或绑定的哦~\n如您确认注销,请点击本对话框,按步骤提示完成验证即可:\n账号注销>>>");
|
||||
jsonObject.put("title", "賬號註銷>");
|
||||
jsonObject.put("msg", "溫馨提示:註銷之後您的賬戶信息都將清空無法恢復,已綁定的手機號碼也不可重新註冊或綁定的哦~\n如您確認註銷,請點擊本對話框,按步驟提示完成驗證即可:\n賬號註銷>>>");
|
||||
jsonObject.put("routerType", Constant.SecretarySkipType.H5);
|
||||
|
||||
String cancelUrl = sysConfService.getSysConfValueById(Constant.SysConfId.CANCEL_USER_URL);
|
||||
|
@@ -265,7 +265,7 @@ public class GiftNotifyListener implements ApplicationListener<GiftMessageEvent>
|
||||
Integer counter = 0;
|
||||
Integer start = 0;
|
||||
|
||||
String noticeMsgTemplate = "%s给%s送出价值%s的%s,点击围观";
|
||||
String noticeMsgTemplate = "%s給%s送出價值%s的%s,點擊圍觀";
|
||||
String noticeMsg = String.format(noticeMsgTemplate, sendUser.getNick(), receiveUser.getNick(), giftMessage.getGoldNum(), gift.getGiftName());
|
||||
|
||||
List<Long> recordList = usersMapper.getUidByPartial(start, STEP_LEN);
|
||||
|
@@ -400,14 +400,14 @@ public class SendSysMsgService extends BaseService {
|
||||
// toAccids.add("");
|
||||
neteaseSendMsgBatchParam.setToAccids(toAccids);
|
||||
neteaseSendMsgBatchParam.setType(100);
|
||||
neteaseSendMsgBatchParam.setPushcontent("图文推送");
|
||||
neteaseSendMsgBatchParam.setPushcontent("圖文推送");
|
||||
Body body = new Body();
|
||||
body.setFirst(Constant.DefMsgType.PointToPointMsg);
|
||||
body.setSecond(Constant.DefMsgType.PushPicWordMsg);
|
||||
PicWordMsgAttach picWordMsgAttach = new PicWordMsgAttach();
|
||||
picWordMsgAttach.setDesc("图文推送你看不看");
|
||||
picWordMsgAttach.setDesc("圖文推送你看不看");
|
||||
picWordMsgAttach.setPicUrl("http://nim.nos.netease.com/NDI3OTA4NQ==/bmltd18wXzE1MDY1Mzk4OTgyOTdfYjlmNTlkOWQtMmI2NS00ODhlLTg4OWEtYzlkNzIwNmI5YTQ3");
|
||||
picWordMsgAttach.setTitle("图文标题");
|
||||
picWordMsgAttach.setTitle("圖文標題");
|
||||
picWordMsgAttach.setWebUrl("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1506550111051&di=efe8d5b4acd00fa45bcd6277dbe6882c&imgtype=0&src=http%3A%2F%2Fimg2.ph.126.net%2FSJB6mcE46weMlzcn6ZbISw%3D%3D%2F6597548054215191722.jpg");
|
||||
body.setData(picWordMsgAttach);
|
||||
neteaseSendMsgBatchParam.setBody(body);
|
||||
@@ -430,7 +430,7 @@ public class SendSysMsgService extends BaseService {
|
||||
userPacketRecordVo.setUid(90971L);
|
||||
userPacketRecordVo.setType(Constant.RedPacket.register);
|
||||
userPacketRecordVo.setNeedAlert(true);
|
||||
userPacketRecordVo.setPacketName("邀请");
|
||||
userPacketRecordVo.setPacketName("邀請");
|
||||
|
||||
List<String> toAccids = Lists.newArrayList();
|
||||
toAccids.add(userPacketRecordVo.getUid().toString());
|
||||
@@ -438,7 +438,7 @@ public class SendSysMsgService extends BaseService {
|
||||
neteaseSendMsgBatchParam.setFromAccid(SystemConfig.secretaryUid);
|
||||
neteaseSendMsgBatchParam.setToAccids(toAccids);
|
||||
neteaseSendMsgBatchParam.setType(100);
|
||||
neteaseSendMsgBatchParam.setPushcontent("您获得了一个红包,点击查看");
|
||||
neteaseSendMsgBatchParam.setPushcontent("您獲得了一個紅包,點擊查看");
|
||||
Body body = new Body();
|
||||
body.setFirst(Constant.DefMsgType.Packet);
|
||||
body.setSecond(Constant.DefMsgType.PacketBouns);
|
||||
|
@@ -37,7 +37,7 @@ public class TestService {
|
||||
neteaseSendMsgBatchParam.setFromAccid(Constant.official.uid.toString());
|
||||
neteaseSendMsgBatchParam.setToAccids(list);
|
||||
neteaseSendMsgBatchParam.setType(100);
|
||||
neteaseSendMsgBatchParam.setPushcontent("你已成功拍下宝贝,请速速密聊去吧~~");
|
||||
neteaseSendMsgBatchParam.setPushcontent("你已成功拍下寶貝,請速速密聊去吧~~");
|
||||
Body body = new Body();
|
||||
body.setFirst(Constant.DefMsgType.DealFinish);
|
||||
body.setSecond(Constant.DefMsgType.DealFinishNotice);
|
||||
|
@@ -99,9 +99,9 @@ public class SummerAct2022BizService {
|
||||
private RoomService roomService;
|
||||
|
||||
|
||||
public final static String content = "您已完成任务,请到活动页面领取奖励>>";
|
||||
public final static String pushTitle = "领取奖励";
|
||||
public final static String pushContent = "点击前往>>";
|
||||
public final static String content = "您已完成任務,請到活動頁面領取獎勵>>";
|
||||
public final static String pushTitle = "領取獎勵";
|
||||
public final static String pushContent = "點擊前往>>";
|
||||
private final static Integer EXPIRE_SECONDS = 60 * 60 * 24 * 14;
|
||||
|
||||
private final static Integer TOTAL_RANK_TOP1 = 30;
|
||||
|
@@ -101,9 +101,9 @@ public class WishStarCupDrawService {
|
||||
@Autowired
|
||||
private ActYearCeremonyService actYearCeremonyService;
|
||||
|
||||
public final static String SPECIAL_PRIZE_INTO_POOL_CONTENT = "价值28888钻的礼物“为爱加冕”将在今晚21点-22点进入许愿星杯奖池,成为2021年度锦鲤在此一举!你会成为那个幸运儿么?立刻点击链接参与活动>>>";
|
||||
public final static String SPECIAL_PRIZE_INTO_POOL_PUSH_CONTENT = "一人独享28888钻礼物大奖,仅限今晚速来>>>";
|
||||
public final static String SPECIAL_PRIZE_INTO_POOL_PUSH_TITLE = "全网寻找在逃锦鲤!!";
|
||||
public final static String SPECIAL_PRIZE_INTO_POOL_CONTENT = "價值28888鑽的禮物“為愛加冕”將在今晚21點-22點進入許願星杯獎池,成為2021年度錦鯉在此一舉!你會成為那個幸運兒么?立刻點擊鏈接參與活動>>>";
|
||||
public final static String SPECIAL_PRIZE_INTO_POOL_PUSH_CONTENT = "一人獨享28888鑽禮物大獎,僅限今晚速來>>>";
|
||||
public final static String SPECIAL_PRIZE_INTO_POOL_PUSH_TITLE = "全網尋找在逃錦鯉!!";
|
||||
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
|
@@ -152,8 +152,8 @@ public class FansRoomService extends ServiceImpl<FansRoomMapper,FansRoom> {
|
||||
// 消息体
|
||||
NeteaseSendMsgBatchParam param = new NeteaseSendMsgBatchParam();
|
||||
param.setType(100);
|
||||
String pushTitle = room.getTitle() + "开播了";
|
||||
String pushContent = "你关注的" + room.getTitle() + "正在直播,邀请你一起来玩";
|
||||
String pushTitle = room.getTitle() + "開播了";
|
||||
String pushContent = "你關注的" + room.getTitle() + "正在直播,邀請你一起來玩";
|
||||
param.setPushcontent(pushContent);
|
||||
// payload
|
||||
Payload payload = new Payload();
|
||||
|
@@ -144,7 +144,7 @@ public class GameManageBizService {
|
||||
|
||||
BusiResult busiResult = new BusiResult(BusiStatus.SUCCESS);
|
||||
busiResult.setData(withDrawVo);
|
||||
busiResult.setMessage("提现成功,审核通过后将会在1-2个工作日到账");
|
||||
busiResult.setMessage("提現成功,審核通過後將會在1-2個工作日到賬");
|
||||
return busiResult;
|
||||
}
|
||||
|
||||
@@ -244,7 +244,7 @@ public class GameManageBizService {
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void closeMatchManual(Long matchId, Boolean giveBackTicket, String closeReason) {
|
||||
if (StringUtils.isBlank(closeReason)) {
|
||||
throw new ServiceException(BusiStatus.PARAMETERILLEGAL, "关闭原因不能为空");
|
||||
throw new ServiceException(BusiStatus.PARAMETERILLEGAL, "關閉原因不能為空");
|
||||
}
|
||||
GameManageInfo matchInfo = gameManageInfoService.getById(matchId);
|
||||
gameManageService.closeMatchManual(matchInfo, giveBackTicket);
|
||||
@@ -252,11 +252,11 @@ public class GameManageBizService {
|
||||
}
|
||||
|
||||
private void sendCloseMatchManualMatchMsg(GameManageInfo match, String closeReason, Boolean giveBackTicket) {
|
||||
StringBuilder builder = new StringBuilder("报名的").append(match.getTitle()).append("已关闭:").append(closeReason).append("。");
|
||||
StringBuilder builder = new StringBuilder("報名的").append(match.getTitle()).append("已關閉:").append(closeReason).append("。");
|
||||
if (giveBackTicket) {
|
||||
builder.append("已消耗的门票已退回,");
|
||||
builder.append("已消耗的門票已退回,");
|
||||
}
|
||||
String msgContent = builder.append("我们将举办更多精彩赛事,敬请期待").toString();
|
||||
String msgContent = builder.append("我們將舉辦更多精彩賽事,敬請期待").toString();
|
||||
int first = Constant.DefineProtocol.CUSTOM_MSG_GAME_MANAGE;
|
||||
int second = Constant.DefineProtocol.CUSTOM_MSG_GAME_MANUAL_CLOSE;
|
||||
boolean isNeedForwardToMatchDetail = false;
|
||||
@@ -264,7 +264,7 @@ public class GameManageBizService {
|
||||
}
|
||||
|
||||
private void sendNotEnoughQuotaClosedMatchMsg(GameManageInfo match) {
|
||||
String msgContent = new StringBuilder("很遗憾告知你,报名").append(match.getTitle()).append("已关闭:报名人数不足。已消耗的门票已退回,我们将举办更多精彩赛事,敬请期待").toString();
|
||||
String msgContent = new StringBuilder("很遺憾告知你,報名").append(match.getTitle()).append("已關閉:報名人數不足。已消耗的門票已退回,我們將舉辦更多精彩賽事,敬請期待").toString();
|
||||
int first = Constant.DefineProtocol.CUSTOM_MSG_GAME_MANAGE;
|
||||
int second = Constant.DefineProtocol.CUSTOM_MSG_GAME_NOT_ENOUGH_QUOTA_CLOSED;
|
||||
boolean isNeedForwardToMatchDetail = false;
|
||||
@@ -315,7 +315,7 @@ public class GameManageBizService {
|
||||
}
|
||||
|
||||
public void sendEnterStartMsg(GameManageInfo match) {
|
||||
String msgContent = new StringBuilder("你报名的").append(match.getTitle()).append("马上要开始了,快来参赛吧>>").toString();
|
||||
String msgContent = new StringBuilder("你報名的").append(match.getTitle()).append("馬上要開始了,快來參賽吧>>").toString();
|
||||
int first = Constant.DefineProtocol.CUSTOM_MSG_GAME_MANAGE;
|
||||
int second = Constant.DefineProtocol.CUSTOM_MSG_GAME_ENTER_START;
|
||||
boolean isNeedForwardToMatchDetail = true;
|
||||
@@ -343,7 +343,7 @@ public class GameManageBizService {
|
||||
*/
|
||||
private void sendGameFinishedMsg(GameManageInfo match) {
|
||||
log.info("[sendGameFinishedMsg]开始发送比赛结果通知消息。matchId:{}", match.getMatchId());
|
||||
String msgContent = new StringBuilder("你的").append(match.getTitle()).append("结果已出炉,快来查看吧>>").toString();
|
||||
String msgContent = new StringBuilder("你的").append(match.getTitle()).append("結果已出爐,快來查看吧>>").toString();
|
||||
int first = Constant.DefineProtocol.CUSTOM_MSG_GAME_MANAGE;
|
||||
int second = Constant.DefineProtocol.CUSTOM_MSG_GAME_FINISHED;
|
||||
boolean isNeedForwardToMatchDetail = true;
|
||||
@@ -445,7 +445,7 @@ public class GameManageBizService {
|
||||
* @param match
|
||||
*/
|
||||
private void sendDisMissQuickGameMsg(GameManageInfo match) {
|
||||
String msgContent = new StringBuilder("很遗憾你参加的和平精英快速赛:").append(match.getTitle()).append("未达到开赛要求,去看看其他的热门比赛吧>> 点击打开进入赛事首页").toString();
|
||||
String msgContent = new StringBuilder("很遺憾你參加的和平精英快速賽:").append(match.getTitle()).append("未達到開賽要求,去看看其他的熱門比賽吧>> 點擊打開進入賽事首頁").toString();
|
||||
int first = Constant.DefineProtocol.CUSTOM_MSG_GAME_MANAGE;
|
||||
int second = Constant.DefineProtocol.CUSTOM_MSG_QUICK_DISMISS;
|
||||
boolean isNeedForwardToMatchDetail = false;
|
||||
|
@@ -248,7 +248,7 @@ public class GameMatchService {
|
||||
} else {
|
||||
detailUrl = gameMatchConfig.getMatchDetailPageUrl() + match.getMatchId();
|
||||
}
|
||||
this.buildNeteaseSendMsgBatchParam(neteaseSendMsgBatchParam,uids, "进房通知", "你报名的比赛马上开始了,快来参赛吧 >> 点击进入该页面", detailUrl);
|
||||
this.buildNeteaseSendMsgBatchParam(neteaseSendMsgBatchParam,uids, "進房通知", "你報名的比賽馬上開始了,快來參賽吧 >> 點擊進入該頁面", detailUrl);
|
||||
sendSysMsgService.sendBatchMsgMsg(neteaseSendMsgBatchParam);
|
||||
}
|
||||
|
||||
|
@@ -74,7 +74,7 @@ open class ServerGiftRedEnvelopeStrategy : RedEnvelopeStrategy() {
|
||||
sendSysMsgService.broadCastMsg(fromAccid, attachStr)
|
||||
|
||||
// 发送全服私信
|
||||
val message = "${users.nick}发出一个全服红包"
|
||||
val message = "${users.nick}發出一個全服紅包"
|
||||
val startDate = DateTimeUtil.addDays(Date(), -7)
|
||||
val toAccids = accountLoginRecordService.getRecentLoginUids(startDate, redEnvelopeConfig.serverAppVersion)
|
||||
val neteaseSendMsgBatchParam = NeteaseSendMsgBatchParam()
|
||||
|
@@ -75,7 +75,7 @@ open class ServerGoldRedEnvelopeStrategy : RedEnvelopeStrategy() {
|
||||
sendSysMsgService.broadCastMsg(fromAccid, attachStr)
|
||||
|
||||
// 发送全服私信
|
||||
val message = "${users.nick}发出一个全服红包"
|
||||
val message = "${users.nick}發出一個全服紅包"
|
||||
val startDate = DateTimeUtil.addDays(Date(), -7)
|
||||
val toAccids = accountLoginRecordService.getRecentLoginUids(startDate, redEnvelopeConfig.serverAppVersion)
|
||||
val neteaseSendMsgBatchParam = NeteaseSendMsgBatchParam()
|
||||
|
@@ -401,8 +401,8 @@ public class SignGoldService extends BaseService {
|
||||
toIndex = toIndex > uidList.size()?uidList.size():toIndex;
|
||||
List<String> subList = uidList.subList(fromIndex,toIndex);
|
||||
// 批量发送自定义点对点普通消息
|
||||
this.batchSendRemindMsg(subList,"点我!点我!点我!" ,
|
||||
"叮咚~你今天还没有签到哦,再不来就要错过大奖啦!");
|
||||
this.batchSendRemindMsg(subList,"點我!點我!點我!" ,
|
||||
"叮咚~你今天還沒有簽到哦,再不來就要錯過大獎啦!");
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user