From 15defa991fcd30b9fa60bab17d2230b5929bf2a2 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 14 九月 2026 17:20:20 +0800
Subject: [PATCH] update
---
backend/src/main/java/com/tourguide/modules/system/service/GuideNotificationService.java | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/backend/src/main/java/com/tourguide/modules/system/service/GuideNotificationService.java b/backend/src/main/java/com/tourguide/modules/system/service/GuideNotificationService.java
index 989f4d7..983bda7 100644
--- a/backend/src/main/java/com/tourguide/modules/system/service/GuideNotificationService.java
+++ b/backend/src/main/java/com/tourguide/modules/system/service/GuideNotificationService.java
@@ -103,15 +103,18 @@
public void notifyOrderCancelled(TourOrder order) {
if (order == null || order.getGuideId() == null) return;
- create(order.getGuideId(), "ORDER_CANCELLED", "取消提醒", "您有一个讲解订单被取消,请查看",
- order.getId(), orderTargetUrl(order.getId()));
+ String title = "取消提醒";
+ String content = "您有一个讲解订单被取消,请查看";
+ String targetUrl = orderTargetUrl(order.getId());
+ create(order.getGuideId(), "ORDER_CANCELLED", title, content, order.getId(), targetUrl);
+ pushDeviceService.push(order.getGuideId(), title, content, targetUrl);
}
public void notifyOrderReviewed(TourOrder order) {
if (order == null || order.getGuideId() == null) return;
String title = "评价提醒";
String content = "您有一条新的订单评价,请查看";
- String targetUrl = orderTargetUrl(order.getId());
+ String targetUrl = "/pages/rating/index";
create(order.getGuideId(), "ORDER_REVIEWED", title, content, order.getId(), targetUrl);
pushDeviceService.push(order.getGuideId(), title, content, targetUrl);
}
--
Gitblit v1.7.1