|
@@ -10,6 +10,8 @@ import com.fdkankan.common.util.SecurityUtil;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
import com.fdkankan.redis.constant.RedisKey;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
+import com.fdkankan.sms.SendMailAcceUtils;
|
|
|
+import com.fdkankan.ucenter.common.MailUtil;
|
|
|
import com.fdkankan.ucenter.common.OssPath;
|
|
|
import com.fdkankan.ucenter.common.RedisKeyUtil;
|
|
|
import com.fdkankan.ucenter.common.Result;
|
|
@@ -20,11 +22,13 @@ import com.fdkankan.ucenter.entity.SceneProRe;
|
|
|
import com.fdkankan.ucenter.service.*;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.security.GeneralSecurityException;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -63,4 +67,29 @@ public class TestController {
|
|
|
return Result.success( );
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/sendMail")
|
|
|
+ public Result sendMail() throws GeneralSecurityException {
|
|
|
+ String [] userNames = {"luomin@cgaii.com","1413541360@qq.com"};
|
|
|
+ for (String userName : userNames) {
|
|
|
+ SendMailAcceUtils.sendMail(userName, SendMailAcceUtils.EN_CODE_SUBJECT, MailUtil.EN_CODE_MSG.replace("${code}", "123456"), null);
|
|
|
+ String EN_CODE_MSG_EUR = MailUtil.EN_CODE_MSG_EUR.replace("${member}","premium ");
|
|
|
+
|
|
|
+ SendMailAcceUtils.sendMail(userName,
|
|
|
+ MailUtil.EN_CODE_SUBJECT_GQ, EN_CODE_MSG_EUR.replace("${code}","1"),
|
|
|
+ null);
|
|
|
+
|
|
|
+ SendMailAcceUtils.sendMail(userName,
|
|
|
+ MailUtil.EN_CODE_SUBJECT_GQ, MailUtil.EN_CODE_MSG_EUR_TODAY.replace("${member}"," premium"),
|
|
|
+ null);
|
|
|
+
|
|
|
+ String EN_CODE_MSG_EUR_GQ = MailUtil.EN_CODE_MSG_EUR_GQ.replace("${member}","premium ");
|
|
|
+ SendMailAcceUtils.sendMail(userName,
|
|
|
+ MailUtil.EN_CODE_SUBJECT_GQ, EN_CODE_MSG_EUR_GQ,null);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
}
|