|
@@ -48,6 +48,8 @@ public class CuiQiuMailServiceImpl implements CuiQiuMailService {
|
|
|
|
|
|
|
|
private final CuiQiuEmailConfigMapper CuiQiuEmailConfigMapper;
|
|
private final CuiQiuEmailConfigMapper CuiQiuEmailConfigMapper;
|
|
|
|
|
|
|
|
|
|
+ public static String CUI_QIU_API_DOMAIN = "https://api-1760339128.cuiqiu.vip";
|
|
|
|
|
+
|
|
|
@PostConstruct
|
|
@PostConstruct
|
|
|
public void getCuiQiuEmailConfig() {
|
|
public void getCuiQiuEmailConfig() {
|
|
|
CuiQiuEmailConfigs = CuiQiuEmailConfigMapper.selectList(null);
|
|
CuiQiuEmailConfigs = CuiQiuEmailConfigMapper.selectList(null);
|
|
@@ -61,7 +63,7 @@ public class CuiQiuMailServiceImpl implements CuiQiuMailService {
|
|
|
@Override
|
|
@Override
|
|
|
public String getVerifyCode(String email, String relateEmail, Long goodsId, Integer type, Integer linkType, Boolean isReturnDeviceUrl) throws Exception {
|
|
public String getVerifyCode(String email, String relateEmail, Long goodsId, Integer type, Integer linkType, Boolean isReturnDeviceUrl) throws Exception {
|
|
|
//获取近十封邮件
|
|
//获取近十封邮件
|
|
|
- String url = "https://domain-open-api.cuiqiu.com/v1/message/list";
|
|
|
|
|
|
|
+ String url = CUI_QIU_API_DOMAIN + "/v1/message/list";
|
|
|
|
|
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
|
|
|
|
@@ -139,7 +141,7 @@ public class CuiQiuMailServiceImpl implements CuiQiuMailService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public String getVerifyCodeByEmail(Long messageId, Long goodsId, Integer type, Integer linkType, String mailId, Boolean isReturnDeviceUrl) throws Exception {
|
|
public String getVerifyCodeByEmail(Long messageId, Long goodsId, Integer type, Integer linkType, String mailId, Boolean isReturnDeviceUrl) throws Exception {
|
|
|
- String url = "https://domain-open-api.cuiqiu.com/v1/message/detail";
|
|
|
|
|
|
|
+ String url = CUI_QIU_API_DOMAIN + "/v1/message/detail";
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("token", CUI_QIU_TOKEN);
|
|
params.put("token", CUI_QIU_TOKEN);
|
|
|
params.put("mail_id", mailId);
|
|
params.put("mail_id", mailId);
|