|
@@ -233,7 +233,7 @@ public class VppLicenseCodeServiceImpl implements VppLicenseCodeService {
|
|
|
" </tr>";
|
|
|
for (LicenseCodes code : codes) {
|
|
|
Products product = productService.getById(code.getProductId());
|
|
|
- productName = productName + product.getName() + "<br/>";
|
|
|
+ productName = productName + ProductNameEnum.getEnumByDatabaseName(product.getName()).viewName() + "<br/>";
|
|
|
cdKey = cdKey + code.getCdkey() + "<br/>";
|
|
|
if (product.getCode().contains("platform")) {
|
|
|
platformType = 3;
|
|
@@ -380,7 +380,7 @@ public class VppLicenseCodeServiceImpl implements VppLicenseCodeService {
|
|
|
vppDeviceService.unBindByMemberId(null, Collections.singletonList(vppLicenseCode.getCdkey()));
|
|
|
// 发送邮件
|
|
|
ThreadPoolSingleUtil.getInstance().excute(() -> {
|
|
|
- String text = String.format(CaptchaActionEnum.CANCEL_LICENSE_ASSIGN.text(), vppMember.getEmail(), products.getName(), products.getName(), user.getEmail());
|
|
|
+ String text = String.format(CaptchaActionEnum.CANCEL_LICENSE_ASSIGN.text(), vppMember.getEmail(), ProductNameEnum.getEnumByDatabaseName(products.getName()).viewName(), products.getName(), user.getEmail());
|
|
|
// 替换图片动态地址和取消订阅链接
|
|
|
text = text.replace("emailImagesUrl", emailImagesUrl).replace("cancelEmailUrl", readerproUrl + "/unsubscribe?email=" + vppMember.getEmail());
|
|
|
emailUtils.sendMail(CaptchaActionEnum.CANCEL_LICENSE_ASSIGN.subject(), text, Collections.singletonList(vppMember.getEmail()));
|
|
@@ -474,7 +474,7 @@ public class VppLicenseCodeServiceImpl implements VppLicenseCodeService {
|
|
|
log.info("发送邮件前{}", DateUtil.date().toString("yyyy-MM-dd HH:mm:ss:SSS"));
|
|
|
// 发送邮件
|
|
|
ThreadPoolSingleUtil.getInstance().excute(() -> {
|
|
|
- String text = String.format(CaptchaActionEnum.CANCEL_LICENSE_ASSIGN.text(), vppMember.getEmail(), product.getName(), product.getName(), user.getEmail());
|
|
|
+ String text = String.format(CaptchaActionEnum.CANCEL_LICENSE_ASSIGN.text(), vppMember.getEmail(), ProductNameEnum.getEnumByDatabaseName(product.getName()).viewName(), product.getName(), user.getEmail());
|
|
|
// 替换图片动态地址和取消订阅链接
|
|
|
text = text.replace("emailImagesUrl", emailImagesUrl).replace("cancelEmailUrl", readerproUrl + "/unsubscribe?email=" + vppMember.getEmail());
|
|
|
emailUtils.sendMail(CaptchaActionEnum.CANCEL_LICENSE_ASSIGN.subject(), text, Collections.singletonList(vppMember.getEmail()));
|