Commit eeab51df authored by nanahira's avatar nanahira

fix pure number message

parent 9015fc14
...@@ -43,7 +43,7 @@ export function adaptSession(bot: WeComBot, input: WecomEventResponse) { ...@@ -43,7 +43,7 @@ export function adaptSession(bot: WeComBot, input: WecomEventResponse) {
switch (body.MsgType) { switch (body.MsgType) {
case 'text': case 'text':
const textBody = body as WecomChatBody; const textBody = body as WecomChatBody;
session.content = textBody.Content; session.content = textBody.Content.toString();
break; break;
case 'image': case 'image':
const imageBody = body as WecomPicBody; const imageBody = body as WecomPicBody;
......
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