juzibot / xiaoju

17 stars 2 forks source link

"externalRequestId" 出现相同请求的时候 没有返回 code -8 #29

Closed tianrking closed 2 years ago

tianrking commented 2 years ago

"externalRequestId": "", // null 正常工作 相应也正常 "externalRequestId": "a", //第一次请求 正常工作 {"code":0,"data":{"requestId":"6215a1ad668cdc00389a6eb8"}} "externalRequestId": "a", //第二次请求 不能发送消息 因为需要确保唯一 但是返回相应也是正常的 {"code":0,"data":{"requestId":"6215a1ad668cdc00389a6eb8"}}

"externalRequestId" 出现相同请求的时候 没有返回 code -8

发送消息

data = {
  "chatId": chat_id,
  "token": my_token,
  "messageType": 0 , # MessageType, check below
  "payload": {
    "text": "测试消息",
    "mention": [] # mention list, you can only set it when you send text message to room,
  },
  "externalRequestId": "xxx", 
}