|
@@ -168,7 +168,9 @@ public class GooglePayServiceImpl implements GooglePayService {
|
|
|
// 格式化当前日期
|
|
|
String formattedDate = sdf.format(date);
|
|
|
contentMap.put("@date@",formattedDate);
|
|
|
- contentMap.put("@payPrice@", product.getDisplayPrice().toString());
|
|
|
+ String price = ObjectUtils.isNotEmpty(product.getDisplayPrice())? product.getDisplayPrice().toString() : product.getPrice().toString();
|
|
|
+
|
|
|
+ contentMap.put("@payPrice@", price);
|
|
|
contentMap.put("@renewPrice@", product.getPrice().toString());
|
|
|
bo.setSendTitleContent(titleMap);
|
|
|
//设置内容
|
|
@@ -178,7 +180,7 @@ public class GooglePayServiceImpl implements GooglePayService {
|
|
|
EmailSendBO bo = new EmailSendBO();
|
|
|
bo.setToEmail(userVO.getEmail());
|
|
|
//设置事件
|
|
|
- bo.setUseEvent(EmailCodeTypeEnum.MEMBER_UPGRADE_SUCCESS.value());
|
|
|
+ bo.setUseEvent(EmailCodeTypeEnum.MEMBER_BUY_SUCCESS.value());
|
|
|
//设置title
|
|
|
Map<String,String> titleMap = new HashMap<>();
|
|
|
//设置内容
|
|
@@ -190,7 +192,8 @@ public class GooglePayServiceImpl implements GooglePayService {
|
|
|
// 格式化当前日期
|
|
|
String formattedDate = sdf.format(date);
|
|
|
contentMap.put("@date@",formattedDate);
|
|
|
- contentMap.put("@payPrice@", product.getDisplayPrice().toString());
|
|
|
+ String price = ObjectUtils.isNotEmpty(product.getDisplayPrice())? product.getDisplayPrice().toString() : product.getPrice().toString();
|
|
|
+ contentMap.put("@payPrice@", price);
|
|
|
bo.setSendTitleContent(titleMap);
|
|
|
//设置内容
|
|
|
bo.setSendContent(contentMap);
|