Coder Social home page Coder Social logo

Comments (7)

chenbb0128 avatar chenbb0128 commented on August 30, 2024

image

联系人的接口:http://127.0.0.1:3000/sendContactMsg?alias=xxx&content=xxx

from moyu-chat.

Evanzew avatar Evanzew commented on August 30, 2024

我看代码里判断是的/0或者/1,我使用你的sendcontactmsg报错cannot find,现在是接收没问题但是发送有问题,我使用的是windows,node版本是16,pnpm版本是7xx,是不是因为node版本不够?

image

联系人的接口:http://127.0.0.1:3000/sendContactMsg?alias=xxx&content=xxx

我看代码里判断是的/0或者/1,我使用你的sendcontactmsg报错cannot find,现在是接收没问题但是发送有问题,我使用的是windows,node版本是16,pnpm版本是7xx,是不是因为node版本不够?

image

from moyu-chat.

chenbb0128 avatar chenbb0128 commented on August 30, 2024

我看代码里判断是的/0或者/1,我使用你的sendcontactmsg报错cannot find,现在是接收没问题但是发送有问题,我使用的是windows,node版本是16,pnpm版本是7xx,是不是因为node版本不够?

image

联系人的接口:http://127.0.0.1:3000/sendContactMsg?alias=xxx&content=xxx

我看代码里判断是的/0或者/1,我使用你的sendcontactmsg报错cannot find,现在是接收没问题但是发送有问题,我使用的是windows,node版本是16,pnpm版本是7xx,是不是因为node版本不够?

image

和版本没关系,这个接口搜索只能去搜索有备注的联系人,所以没有找到,你试试用一个有备注的人,用alias=xxx

from moyu-chat.

Evanzew avatar Evanzew commented on August 30, 2024

我看代码里判断是的/0或者/1,我使用你的sendcontactmsg报错cannot find,现在是接收没问题但是发送有问题,我使用的是windows,node版本是16,pnpm版本是7xx,是不是因为node版本不够?

image

联系人的接口:http://127.0.0.1:3000/sendContactMsg?alias=xxx&content=xxx

我看代码里判断是的/0或者/1,我使用你的sendcontactmsg报错cannot find,现在是接收没问题但是发送有问题,我使用的是windows,node版本是16,pnpm版本是7xx,是不是因为node版本不够?
image

和版本没关系,这个接口搜索只能去搜索有备注的联系人,所以没有找到,你试试用一个有备注的人,用alias=xxx

还是报一样的错误
我使用readme里的接口,显示发送消息成功但是微信上接收不到
Uploading image.png…

from moyu-chat.

Evanzew avatar Evanzew commented on August 30, 2024

看了下原因,代码里

const contact = await bot.Contact.find(query)
    if (contact) {
      contact.say(content)

这里没有找到contact

from moyu-chat.

Evanzew avatar Evanzew commented on August 30, 2024

现在alias或者name使用英文是可以发送成功的,只是发送成功后content还是乱码

from moyu-chat.

Evanzew avatar Evanzew commented on August 30, 2024

我自己解决了,我发现代码里的string2utf8不生效,我用了其他的方式改好了发成功了,thx

from moyu-chat.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.