修改--修改通知消息内容

This commit is contained in:
haotian 2025-04-27 15:33:18 +08:00
parent d9ae55ada9
commit 0142bf44cc
2 changed files with 11 additions and 7 deletions

View File

@ -343,18 +343,18 @@ public class SysWorkReviewController extends BaseController {
// 审核通过
if(workStatus.equals("3")){
sysUserNotification.setType("3");
msg = String.format("您的作品<<%s>>已顺利通过审核,", userWork.getWorkName());
msg = String.format("您的作品<<%s>>已顺利通过审核", userWork.getWorkName());
for(String key:mapSource.keySet()){
msg = msg + String.format("正式发布于%s%s进行展示,", key, String.join("", mapSource.get(key))) + mapTime.get(key) ;
msg = msg + String.format("正式发布于%s%s进行展示", key, String.join("", mapSource.get(key))) + mapTime.get(key) ;
}
msg = msg + String.format("诚邀您前往%s,近距离感受作品的魅力.", String.join("", mapSource.keySet()));
msg = msg + "\n温馨提示:作品审核通过后,建议尽量保持内容原貌,避免二次修改.如需调整,作品将触发重新审核流程.可能影响展示进度与效果.感谢您的理解与配合! ";
msg = msg + String.format("诚邀您前往%s,近距离感受作品的魅力。", String.join("", mapSource.keySet()));
msg = msg + "\n温馨提示:作品审核通过后,建议尽量保持内容原貌,避免二次修改。如需调整,作品将触发重新审核流程。可能影响展示进度与效果。感谢您的理解与配合! ";
}
// 审核不通过
else if(workStatus.equals("4")){
sysUserNotification.setType("4");
msg = "很遗憾地通知您,您提交的<<" + userWork.getWorkName() + "在审核过程中未能通过,主要原因是内容涉及了不符合平台规定的违法或敏感字样,请重新提交审核";
msg = "很遗憾地通知您您提交的<<" + userWork.getWorkName() + "在审核过程中未能通过,主要原因是内容涉及了不符合平台规定的违法或敏感字样,请重新提交审核。";
}
else{
return error("请选择审核状态");

View File

@ -288,6 +288,8 @@ public class dailySysServer {
// 修改订单状态为1 已退款
Long orderId = sysSource.getOrderId();
// 退款金额
Long money = 0L;
if(orderId != null){
SysOrder sysOrder = sysOrderService.selectSysOrderByOrderId(orderId);
@ -296,6 +298,8 @@ public class dailySysServer {
// 修改order_info 状态
OrderInfo orderInfo = orderInfoService.getOrderInfoByOrderInfoIdAndWorkId(sysOrder.getOrderInfoId(), userwork.getWorkId());
money = sysOrder.getMoney();
orderInfo.setStatus("1");
orderInfo.setRefundTime(DateUtils.getNowDate());
orderInfoService.updateOrderInfo(orderInfo);
@ -317,7 +321,7 @@ public class dailySysServer {
SysUserNotification sysUserNotification = new SysUserNotification();
sysUserNotification.setUserId(userwork.getUserId());
sysUserNotification.setSenderId(1L);
sysUserNotification.setDetail("您购买的"+sysSource.getScenic()+sysSource.getPart()+String.format("%02d", sysSource.getcX())+String.format("%02d", sysSource.getcY())+"资源位已退款");
sysUserNotification.setDetail("尊敬的创作者,您提交的作品<<"+userwork.getWorkName()+">>作品未在规定时间内通过审核,已原路退款"+money+"元。");
sysUserNotification.setType("4");
sysUserNotification.setStatus("0");
userNotificationService.insertSysUserNotification(sysUserNotification);
@ -412,7 +416,7 @@ public class dailySysServer {
SysUserNotification sysUserNotification = new SysUserNotification();
sysUserNotification.setUserId(receiveUserId);
sysUserNotification.setSenderId(0L);
sysUserNotification.setDetail("你的作品将在24小时后结束展示");
sysUserNotification.setDetail(String.format("<<%s>>将于24小时后结束展示请及时关注作品状态。", userWork.getWorkName()));
// 24小时临期消息
sysUserNotification.setType("7");
sysUserNotification.setStatus("0");