Fix SendXmlMessage

This commit is contained in:
Changhua 2024-10-31 22:59:27 +08:00
parent 86c0920445
commit c66b1f7eb2
3 changed files with 3 additions and 5 deletions

View File

@ -117,7 +117,7 @@ message XmlMsg
string receiver = 1; //
string content = 2; // xml
string path = 3; //
int32 type = 4; //
uint64 type = 4; //
}
message MsgTypes { map<int32, string> types = 1; }

View File

@ -321,7 +321,6 @@ bool func_send_emotion(char *path, char *receiver, uint8_t *out, size_t *len)
return true;
}
#if 0
bool func_send_xml(XmlMsg xml, uint8_t *out, size_t *len)
{
Response rsp = Response_init_default;
@ -335,7 +334,7 @@ bool func_send_xml(XmlMsg xml, uint8_t *out, size_t *len)
string receiver(xml.receiver);
string content(xml.content);
string path(xml.path ? xml.path : "");
uint32_t type = (uint32_t)xml.type;
uint64_t type = (uint64_t)xml.type;
SendXmlMessage(receiver, content, path, type);
rsp.msg.status = 0;
}
@ -349,7 +348,6 @@ bool func_send_xml(XmlMsg xml, uint8_t *out, size_t *len)
return true;
}
#endif
bool func_send_rich_txt(RichText rt, uint8_t *out, size_t *len)
{

View File

@ -17,7 +17,7 @@ typedef struct {
void SendTextMessage(string wxid, string msg, string atWxids);
void SendImageMessage(string wxid, string path);
void SendFileMessage(string wxid, string path);
void SendXmlMessage(string receiver, string xml, string path, int type);
void SendXmlMessage(string receiver, string xml, string path, uint64_t type);
void SendEmotionMessage(string wxid, string path);
int SendRichTextMessage(RichText_t &rt);
int SendPatMessage(string roomid, string wxid);