canwushuang

Results 8 comments of canwushuang

嗯 大文件秒传是一个必经过程,用于115接口产生临时oss认证信息和回调匹配文件完整性。ps 个人采用的方案是服务器用flask写了一个api用于计算sha1,国内环境上传,至于sha1计算时间和性能基本上不用考虑,分片计算即可,不占用服务器cpu资源,仅消耗挂载网盘通信期间的流量。

应该是requests toolbelt的问题。感觉有点难解决该问题

The gz package is broken due to the unexpected end of file.

Thanks a lot! It need some to change in "org/las2mile/scrcpy" folder. It will take you much time on it.

python版本如果存在alias,则直接替换name字段了。

alias只能赋值不能获取,赋值 await contact.alias('newalias') 即可,contact的格式是Contact 。另外,wechaty守护程序需要重启,联系人才能使用新alias搜索,否则只能使用之前的alias。

看了下代码,获取alias可以用contact.payload.alias获取。 contacts: List[Contact] = await bot.Contact.find_all() for contact in contacts: contacts_dict[contact.contact_id] = (contact.name,contact.payload.alias,contact.type())

> > python版本如果存在alias,则直接替换name字段了。 > > Thanks for share your understanding about `python-wechaty`. But I want to correct you that if there is contact alias, it will return it from `contact.alias()`...