Commit 6bb6d59d by zhangshaowu

Merge remote-tracking branch 'origin/master'

2 parents 9c1b8099 b6b2f9d6
......@@ -25,6 +25,8 @@ public class SendMsgUseFeiShu {
@Autowired
private FeiShuConfig feiShuConfig;
@PostMapping("/send-msg")
public Result sendMsg(String receiveId, String msg, String receiveIdType){
JSONObject sendMsg = new JSONObject();
......@@ -32,6 +34,7 @@ public class SendMsgUseFeiShu {
sendMsg.put("msg_type", "text");
JSONObject content = new JSONObject();
content.put("text", msg);
sendMsg.put("content", content.toString());
feiShuApiService.sendMsg(SendMsgBusinessType.TALK.getBusinessType(), receiveIdType, sendMsg, feiShuConfig.getTestHelperApp());
return ResultGenerator.genSuccessResult();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!