Skip to content

Commit

Permalink
feat:人工审核/stage准入支持发送企业微信群消息 TencentBlueKing#7971
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyiduan committed Jan 3, 2023
1 parent bfd7fe4 commit 9690c33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class WechatWorkService @Autowired constructor(
* */
fun sendRichText(richtextMessage: RichtextMessage): Boolean {
val accessToken = getAccessToken()
val jsonString = objectMapper.writeValueAsString(richtextMessage)
val jsonString = JsonUtil.toJson(richtextMessage, false)

val sendURL = "$wechatWorkApiURL/cgi-bin/tencent/chat/send?access_token=$accessToken"
val requestBody = RequestBody.create(MediaType.parse("application/json"), jsonString)
Expand Down

0 comments on commit 9690c33

Please sign in to comment.