|
|
@@ -1877,7 +1877,7 @@ public class EnergyService {
|
|
|
}
|
|
|
|
|
|
Map<String, Object> vars = new HashMap<>();
|
|
|
- vars.put("amount", amount > 0 ? "+" : "") + amount;
|
|
|
+ vars.put("amount", (amount > 0 ? "+" : "") + String.valueOf(amount));
|
|
|
vars.put("source", sourceType);
|
|
|
vars.put("description", description);
|
|
|
notificationDispatchService.sendByTemplate("energy_change", userId, vars, "energyLog", memberId, title, content);
|
|
|
@@ -1908,7 +1908,7 @@ public class EnergyService {
|
|
|
}
|
|
|
|
|
|
Map<String, Object> vars = new HashMap<>();
|
|
|
- vars.put("amount", amount > 0 ? "+" : "") + amount;
|
|
|
+ vars.put("amount", (amount > 0 ? "+" : "") + String.valueOf(amount));
|
|
|
vars.put("source", sourceType);
|
|
|
vars.put("description", description);
|
|
|
notificationDispatchService.sendByTemplate("energy_deduction", userId, vars, "energyLog", memberId, title, content);
|