oldip
oldip
> 依赖: `bilibili-api-python==16.1.1 ` > > ``` > def login_main(): > credential = Credential( > sessdata='XXX', > bili_jct='XXX', > buvid3='XXX', > dedeuserid='XXX' > ) > print("已登录用户:" + sync(user.get_self_info(credential))['name'], "!") >...
> 待细读.jpg > > 总之大概就是不应该读 `live.get_gift_config()["list"]` 里面的礼物,而应该读 `live.LiveRoom().get_gift_common()` 里面的 `gift` 对吧 > > 了解了 > > ~好像缺点示例,下次补上~ 不是,由于送礼物要 id + name + price,而live.LiveRoom().get_gift_common()里面只有可用的id,没有另外两个值,因此解决方法是提取live.get_gift_config()["list"]里面 提取你要送的id和price,然后找live.LiveRoom().get_gift_common()里面有没有相同的id,有的才是能送的,如果每次都要提取和对照应该十分麻烦,会有一定的延迟,所以我决定自己写一个json出来包含自己要送的礼物算了,值得注意的是每个直播间由于类别不一样,有可能有不一样的礼物,不过通用的礼物id应该都是一致的。
> > 待细读.jpg > > 总之大概就是不应该读 `live.get_gift_config()["list"]` 里面的礼物,而应该读 `live.LiveRoom().get_gift_common()` 里面的 `gift` 对吧 > > 了解了 > > ~好像缺点示例,下次补上~ > > 不是,由于送礼物要 id + name + price,而live.LiveRoom().get_gift_common()里面只有可用的id,没有另外两个值,因此解决方法是提取live.get_gift_config()["list"]里面 提取你要送的id和price,然后找live.LiveRoom().get_gift_common()里面有没有相同的id,有的才是能送的,如果每次都要提取和对照应该十分麻烦,会有一定的延迟,所以我决定自己写一个json出来包含自己要送的礼物算了,值得注意的是每个直播间由于类别不一样,有可能有不一样的礼物,不过通用的礼物id应该都是一致的。 我刚刚发现还有一个问题,升级礼物"upgrade_gift"不包含在get_gift_config()里面,例如花式夸夸+66电池可以升级的疯狂点赞,闪光应援等等礼物正常输入正确的id也可以发送,但不包含在live.get_gift_config()里面,刚刚在创建自用的json时候发现的
I tried enabling debug logging as requested, but unfortunately it doesn’t work. When I switch the logging level to Debug, the AdGuard app immediately crashes on startup (auto force close)....
Thanks a lot to the AdGuard team for your help! After the last update, the issue has been fully resolved — everything works fine now. I noticed that some other...
找到了,改成了`INTERACT_WORD_V2` 像我一样的急急国王可以用protoc自己改 详细步骤如下: --- ## 1. 安装依赖 ```bash # 安装 Python Protobuf 运行时 pip install protobuf # 安装 Protoc 编译器(以 Debian/Ubuntu 为例) sudo apt update sudo apt install -y protobuf-compiler...
为方便遇到同样问题的同学参考,我先不关闭此 Issue;如若管理员认为无需保留,麻烦帮忙关闭,感谢!