Coder Social home page Coder Social logo

Comments (12)

messense avatar messense commented on May 18, 2024

5xx 的错误码一般都是服务器出错,应该是微信服务器的问题吧。

发自我的 iPhone

在 2015年6月4日,11:56,zhangwen9229 [email protected] 写道:

Uploading 20150604115341.png…


Reply to this email directly or view it on GitHub.

from wechatpy.

zhangwen9229 avatar zhangwen9229 commented on May 18, 2024

那我下午再试试。 就是再点击菜单时,触发 创建会话。 就这样报错了。 截图暂时传不上。

from wechatpy.

zhangwen9229 avatar zhangwen9229 commented on May 18, 2024

20150604115341

from wechatpy.

zhangwen9229 avatar zhangwen9229 commented on May 18, 2024

@messense 手动创建会话不行
return (TransferCustomerServiceReply(message=self.msg)).render()
直接转发多客服 可以
但用户点击自定义菜单【人工服务】 后端 直接 创建会话,不可行吗?

from wechatpy.

messense avatar messense commented on May 18, 2024

@zhangwen9229 你用的是哪个版本的 wechatpy?我看截图里面地址有些问题,不应该有 /cgi-bin/ 的。

from wechatpy.

zhangwen9229 avatar zhangwen9229 commented on May 18, 2024

上午升级了 最新版本 0.8.7 @messense
class WeChatClient(BaseWeChatClient):
"""
微信 API 操作类
通过这个类可以操作微信 API,发送主动消息、群发消息和创建自定义菜单等。
"""

API_BASE_URL = 'https://api.weixin.qq.com/cgi-bin/'

from wechatpy.

messense avatar messense commented on May 18, 2024

@zhangwen9229 Sorry. 上次多客服相关接口的修改还没发布新版本,你安装 develop 分支的代码试下。

from wechatpy.

zhangwen9229 avatar zhangwen9229 commented on May 18, 2024

@messense https://github.com/messense/wechatpy/blob/master/wechatpy/client/api/customservice.py#L137
你查看下这块, 代码上写的地址应该是没错。 我已安装develop代码,等会再测试试试

from wechatpy.

zhangwen9229 avatar zhangwen9229 commented on May 18, 2024

@messense 我刚测试完, develop代码可以使用
customservice.create_session(self.msg.source, u"test@test", text=None)

from wechatpy.

messense avatar messense commented on May 18, 2024

@zhangwen9229 Thanks. 发布了新版本到 PyPi 了。

from wechatpy.

zhangwen9229 avatar zhangwen9229 commented on May 18, 2024

@messense You are welcome. 我等会升级下最新版本

from wechatpy.

zhangwen9229 avatar zhangwen9229 commented on May 18, 2024

@messense 创建会话测试正常。 可以关闭了。

from wechatpy.

Related Issues (20)

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.