注释邮箱邮件接口请求数据,使用测试数据
This commit is contained in:
parent
4ad4669421
commit
ec59d0ce95
|
|
@ -44,7 +44,7 @@ public class SysEmailController {
|
||||||
String apiUrl = url + "sysEmail/sourceList";
|
String apiUrl = url + "sysEmail/sourceList";
|
||||||
Map<String, String> getHeaders = Map.of("Authorization", "");
|
Map<String, String> getHeaders = Map.of("Authorization", "");
|
||||||
|
|
||||||
String apiResult = HttpClientUtil.doGet(apiUrl, getHeaders, true); // 启用 SSL
|
//String apiResult = HttpClientUtil.doGet(apiUrl, getHeaders, true); // 启用 SSL
|
||||||
//region
|
//region
|
||||||
String getResult = "{\n" +
|
String getResult = "{\n" +
|
||||||
" \"success\": true,\n" +
|
" \"success\": true,\n" +
|
||||||
|
|
@ -102,7 +102,7 @@ public class SysEmailController {
|
||||||
String url = hostProperties.getArmdHost();
|
String url = hostProperties.getArmdHost();
|
||||||
String apiUrl = url + "sysEmailLog/getRecentEmailDatas" + "?emailId=" + URLEncoder.encode(emailId, "UTF-8");
|
String apiUrl = url + "sysEmailLog/getRecentEmailDatas" + "?emailId=" + URLEncoder.encode(emailId, "UTF-8");
|
||||||
Map<String, String> getHeaders = Map.of("Authorization", "");
|
Map<String, String> getHeaders = Map.of("Authorization", "");
|
||||||
String apiResult = HttpClientUtil.doGet(apiUrl, getHeaders, true); // 启用 SSL
|
//String apiResult = HttpClientUtil.doGet(apiUrl, getHeaders, true); // 启用 SSL
|
||||||
//region 测试数据
|
//region 测试数据
|
||||||
String resultStr = "{\n" +
|
String resultStr = "{\n" +
|
||||||
"\t\"success\": true,\n" +
|
"\t\"success\": true,\n" +
|
||||||
|
|
@ -274,7 +274,7 @@ public class SysEmailController {
|
||||||
String fullUrl = apiUrl + "?emailId=" + URLEncoder.encode(emailId, "UTF-8")
|
String fullUrl = apiUrl + "?emailId=" + URLEncoder.encode(emailId, "UTF-8")
|
||||||
+ "&startDate=" + startDate.toString() // LocalDate的toString()默认就是yyyy-MM-dd格式
|
+ "&startDate=" + startDate.toString() // LocalDate的toString()默认就是yyyy-MM-dd格式
|
||||||
+ "&endDate=" + endDate.toString();
|
+ "&endDate=" + endDate.toString();
|
||||||
String apiResult = HttpClientUtil.doGet(fullUrl, getHeaders, true);
|
// String apiResult = HttpClientUtil.doGet(fullUrl, getHeaders, true);
|
||||||
//region
|
//region
|
||||||
String DataResult = " {\n" +
|
String DataResult = " {\n" +
|
||||||
" \"success\": true,\n" +
|
" \"success\": true,\n" +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user