Commit 2b7d6172 by jx-art

发送邮箱

parent 431506c6
Pipeline #43201 passed with stages
in 1 minute 34 seconds
...@@ -82,7 +82,7 @@ public class UasClientServiceImpl implements UasClientService { ...@@ -82,7 +82,7 @@ public class UasClientServiceImpl implements UasClientService {
params.put("cc", StringUtils.join(ccList, ",")); params.put("cc", StringUtils.join(ccList, ","));
} }
logger.info(JSONObject.toJSONString(params)); logger.info(JSONObject.toJSONString(params));
String res = service.sendEmail2(params); String res = service.sendEmail2(subject,content,StringUtils.join(toList, ","));
this.logger.info("[op:sendEmail] res={} ", new Object[]{res}); this.logger.info("[op:sendEmail] res={} ", new Object[]{res});
JSONObject jsonObject = JSON.parseObject(res); JSONObject jsonObject = JSON.parseObject(res);
if (jsonObject.getInteger("code") != 200) { if (jsonObject.getInteger("code") != 200) {
......
...@@ -4,7 +4,9 @@ import com.netease.yanxuan.missa.client.annotation.MissaClient; ...@@ -4,7 +4,9 @@ import com.netease.yanxuan.missa.client.annotation.MissaClient;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
...@@ -20,7 +22,9 @@ public interface EmailRpcService { ...@@ -20,7 +22,9 @@ public interface EmailRpcService {
@PostMapping("/push/email/qc") @PostMapping("/push/email/qc")
String sendEmail2(@RequestBody Map<String, String> params); String sendEmail2(@RequestParam(name = "subject")String subject,
@RequestParam(name = "content")String content,
@RequestParam(name = "to") String to);
//yanxuan-sc-ehc //yanxuan-sc-ehc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment