v1.1 小秘书通知消息 简转繁

This commit is contained in:
2022-10-17 16:28:14 +08:00
parent ed06e16240
commit 50845c0de8
12 changed files with 32 additions and 32 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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;

View File

@@ -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() {

View File

@@ -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();

View File

@@ -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;

View File

@@ -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);
}

View File

@@ -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()

View File

@@ -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()

View File

@@ -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);
}
}