Wangrong
Wangrong
when I use the add_child function, some errors lead to creating child failure, but root nodes still increase its numchild field. ```python root = Student.add_root(name="sam", age=18) root.add_child(name="xxx") #no age field,...
客服管理功能添加
所有代码均自测通过; 官方文档有2处: 官方文档【1】链接: https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Customer_Service_Management.html 官方文档【2】链接: https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html 以上两处文档不同之处有几方面: 1中添加和更新客服不需要密码参数,2中有参数。代码采用1文档 1中删除客服账号使用get请求,2中使用post请求。代码采用2文档
在`NewOfficialAccount`和`NewMiniProgram`方法中,如果参数的cache为nil,则初始化失败。 cache只是用于设置`AccessTokenHandle`接口,对于大部分的应用来说,都会通过`SetAccessTokenHandle`方法来重新设置,但是初始化的时候必须提供一个非空的cache,否则不能通过。 建议:新增`NewCustomOfficialAccount`之类的函数,不对`AccessTokenHandle`进行配置;或者在DefaultAccessToken的`GetAccessToken`方法中进行判断cache是否为空。 不知道作者对此有什么看法?
https://github.com/silenceper/wechat/blob/108a65ecf34f2749170329e0a935f406d070b19d/officialaccount/officialaccount.go#L62-L68 该问题同 issue #348 ,但是该问题太久远,需要重新讨论设计, #501 虽然已经提交了pr,但是在设计方面感觉有些不大好,而且提交者似乎不再更新其代码,故重提该问题以尽快实现。 如果在高并发情况下,大量创建新的Server,内存可能来不及释放而导致内存溢出OOM。
## 问题及现象 一个wechat可以管理多个公众号和小程序实例。 但是对于一个公众号来说:应该只可以有一个“菜单管理”,“消息管理”,“草稿箱”,“素材管理”等功能,所以是否考虑在officialaccount及其他包中实现单例,而不是每次都GetXXX()之后返回一个新的实例对象?
https://github.com/sh4nks/flask-caching/blob/779f6bb1b885953921f8db625f7c60e68cc0fca7/flask_caching/__init__.py#L250-L253 change to following ```python app.extensions["cache"]= cache_factory( app, config, cache_args, cache_options ) ``` i want to get cache instance from app.extensions, but now can NOT get from here, any good...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior when i run the example/chat code, it can NOT work as...