|
@@ -71,6 +71,11 @@ public class AuthServiceImpl implements AuthService {
|
|
|
@Value("${security.oauth2.client.client-secret:}")
|
|
|
private String secretKey;
|
|
|
|
|
|
+ @Value("${readerproUrl}")
|
|
|
+ private String readerproUrl;
|
|
|
+ @Value("${emailImagesUrl}")
|
|
|
+ private String emailImagesUrl;
|
|
|
+
|
|
|
@Resource
|
|
|
private VppMemberService VppMemberService;
|
|
|
|
|
@@ -194,6 +199,8 @@ public class AuthServiceImpl implements AuthService {
|
|
|
String text = "";
|
|
|
if(action.value().equals(CaptchaActionEnum.USER_REGISTER.value())){
|
|
|
text = String.format(action.text(), receiver, code);
|
|
|
+ // 替换图片动态地址和取消订阅链接
|
|
|
+ text = text.replace("emailImagesUrl", emailImagesUrl).replace("cancelEmailUrl", readerproUrl + "/unsubscribe?email=" + receiver);
|
|
|
}
|
|
|
if (emailUtils.sendMail(action.subject(), text, Collections.singletonList(receiver))) {
|
|
|
flag = true;
|