|
@@ -30,13 +30,13 @@ public class TencentEmsController {
|
|
|
@Autowired
|
|
|
private TencentEmsCallbackService tencentEmsCallbackService;
|
|
|
|
|
|
- @Anonymous
|
|
|
- @Operation(summary = "邮件推送 (测试)")
|
|
|
- @GetMapping("/api/ems/send")
|
|
|
- public Result send(String email) {
|
|
|
- String templateParamSet = "{ \"code\": \"123456\", \"minute\": \"5\" }";
|
|
|
- return Result.success().put("data", tencentEmsService.send("邮件测试", 140698L, templateParamSet, email));
|
|
|
- }
|
|
|
+ //@Anonymous
|
|
|
+ //@Operation(summary = "邮件推送 (测试)")
|
|
|
+ //@GetMapping("/api/ems/send")
|
|
|
+ //public Result send(String email) {
|
|
|
+ // String templateParamSet = "{ \"code\": \"123456\", \"minute\": \"5\" }";
|
|
|
+ // return Result.success().put("data", tencentEmsService.send("邮件测试", 140698L, templateParamSet, email));
|
|
|
+ //}
|
|
|
|
|
|
/**
|
|
|
* [回调] 邮件通知事件
|
|
@@ -46,12 +46,10 @@ public class TencentEmsController {
|
|
|
@Operation(summary = "邮件推送通知事件回调")
|
|
|
@PostMapping("/api/ems/callback")
|
|
|
public Result receiveCallback(@RequestBody TencentEmsCallbackParams tencentEmsCallbackParams) {
|
|
|
-
|
|
|
- System.out.println("===============================");
|
|
|
- System.out.println("邮件推送通知事件回调");
|
|
|
- System.out.println("body 参数: " + tencentEmsCallbackParams);
|
|
|
- System.out.println("===============================");
|
|
|
-
|
|
|
+ //System.out.println("===============================");
|
|
|
+ //System.out.println("邮件推送通知事件回调");
|
|
|
+ //System.out.println("body 参数: " + tencentEmsCallbackParams);
|
|
|
+ //System.out.println("===============================");
|
|
|
tencentEmsCallbackService.receiveCallback(tencentEmsCallbackParams);
|
|
|
return Result.success();
|
|
|
}
|