Weibo Helper 一个简单的将微博转发到QQ的插件
-
@mous
是否有关闭mirai的行为,
如果有的话,请使用/stop
命令正常关闭
不然的话,cookie保存可能出现异常 -
此回复已被删除! -
想问一下这个快速和慢速轮询,是按照一天的时间段来回切换模式吗
-
首先谢谢大佬上次回复,上次问题没出现过了。
但是今天重启时候使用/wlogin命令登陆,机器人给我返回了以下内容。发送消息失败, Client request(https://login.sina.com.cn/sso/qrcode/image?entry=weibo&size=180&callback=STK_1638371627032) invalid: 403 Forbidden. Text: "<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatibl" content="IE=edge,chrome=1"/> <title>异常访问提示</title> <link href="/css/denyerrorpage/frame.css" type="text/css" rel="stylesheet"> <link href="/css/denyerrorpage/error.css" type="text/css" rel="stylesheet"> <link href="/css/denyerrorpage/skin.css" type="text/css" rel="stylesheet"> </head> <body> <div class="WB_miniblog"> <!-- 首页 --> <div class="iforgot_bd"> <div class="iforgot_header clearfix"> <div class="logo_mod1 W_fl"></div> <div class="name_mod W_fr"> <a href="http://www.sina.com.cn/" class="S_txt1">新浪首页</a> <a href="https://weibo.com/" class="S_txt1">微博</a> <a href="http://help.weibo.com/" class="S_txt1 last">帮助</a> </div> </div> <div class="iforgot_cont"> <div class="i_mod"> <div class="form_mod"> <div class="form_list form_listError"> <span class="iconError"></span> <span class="itemError code_mod">系统有点忙,请刷新一下试试</span> </div> </div> </div> </div> </div> </div> <div class="WB_footer S_bg2"> <div class="other_link S_bg1 clearfix T_add_ser"> <p class="copy"><a href="http://corp.sina.com.cn/chn/" class="footBg">新浪简介</a> <a class="footBg" href="http://corp.sina.com.cn/eng/">About Sina</a> <a class="footBg" href="http://emarketing.sina.com.cn/">广告服务</a> <a class="footBg" href="http://www.sina.com.cn/contactus.html">联系我们</a> <a class="footBg" href="http://corp.sina.com.cn/chn/sina_job.html">招聘信息</a> <a class="footBg" href="http://www.sina.com.cn/intro/lawfirm.shtml">网站律师</a> <a class="footBg" href="http://english.sina.com" target="__blank">SINA English</a> <a class="footBg" href="http://members.sina.com.cn/apply/" target="__blank">注册</a> <a class="footBg" href="http://tech.sina.com.cn/focus/sinahelp.shtml" target="__blank">产品答疑</a></p> <div class="copy"><a href="javascript:;" class="S_txt2">客户服务电话:400 052 0066 欢迎批评指正</a></div> <p class="company"><span class="copy S_txt2">Copyright 1996-2021 SINA Corporation, All Rights Reserved 新浪公司 版权所有</span></p> </div> </div> </body> </html> "
这是被风控了?
-
@echoosx
登录失败了,重试就行了 -
@mous
尝试修复了一下,with 1.4.1 -
@cssxsh
更新了最新版的,问题已经解决了!感谢大佬 -
好像登录不了qwq扫了码在手机上确认登录之后,mcl没反应
-
@qwertahzz 在命令行中登录?命令行下执行登录指令的话,没有错误信息就是登陆成功了。
-
此回复已被删除! -
@csxsh 改成聊天界面登录,可以登录成功了。
现在还有一个小问题,就是订阅状态貌似在mcl重启之后就不能继承了。
(重启之后,mcl会显示要求手动移动data/weibo-helper到xyz.cssxsh.mirai.plugin.weibo-helper下,把weibo-helper整个文件夹手动移动到xyz.cssxsh.mirai.plugin.weibo-helper之下之后,在聊天界面查询/wuser detail显示为空以及想问一下,轮询是只能设置整数嘛,设置成0.5好像就整个插件都跑不起来了(在mcl里/help看不到这个插件相关的指令
-
@qwertahzz
这是mirai-2.9.0-RC
的问题,请尝试降级 -
今天突然就这样了……
聊天信息wuser(6593199887)监听任务序列化时失败, kotlinx.serialization.MissingFieldException: Fields [duration, h5_url, media_id, name, next_title, video_publish_time] are required for type with serial name 'xyz.cssxsh.weibo.data.PageInfo.MediaInfo', but they were missing
控制台:
2021-12-26 20:36:48 W/weibo-helper: wuser(6593199887)监听任务序列化时失败 kotlinx.serialization.MissingFieldException: Fields [duration, h5_url, media_id, name, next_title, video_publish_time] are required for type with serial name 'xyz.cssxsh.weibo.data.PageInfo.MediaInfo', but they were missing at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20) at xyz.cssxsh.weibo.data.PageInfo$MediaInfo.<init>(PageInfo.kt:21) at xyz.cssxsh.weibo.data.PageInfo$MediaInfo$$serializer.deserialize(PageInfo.kt:21) at xyz.cssxsh.weibo.data.PageInfo$MediaInfo$$serializer.deserialize(PageInfo.kt:21) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63) at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:51) at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableValue(Tagged.kt:206) at kotlinx.serialization.internal.TaggedDecoder$decodeNullableSerializableElement$1.invoke(Tagged.kt:288) at kotlinx.serialization.internal.TaggedDecoder.tagBlock(Tagged.kt:296) at kotlinx.serialization.internal.TaggedDecoder.decodeNullableSerializableElement(Tagged.kt:287) at xyz.cssxsh.weibo.data.PageInfo$$serializer.deserialize(PageInfo.kt:5) at xyz.cssxsh.weibo.data.PageInfo$$serializer.deserialize(PageInfo.kt:5) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63) at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:51) at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableValue(Tagged.kt:206) at kotlinx.serialization.internal.TaggedDecoder$decodeNullableSerializableElement$1.invoke(Tagged.kt:288) at kotlinx.serialization.internal.TaggedDecoder.tagBlock(Tagged.kt:296) at kotlinx.serialization.internal.TaggedDecoder.decodeNullableSerializableElement(Tagged.kt:287) at xyz.cssxsh.weibo.data.MicroBlog$$serializer.deserialize(MicroBlog.kt:13) at xyz.cssxsh.weibo.data.MicroBlog$$serializer.deserialize(MicroBlog.kt:13) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63) at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:51) at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableValue(Tagged.kt:206) at kotlinx.serialization.internal.TaggedDecoder$decodeSerializableElement$1.invoke(Tagged.kt:279) at kotlinx.serialization.internal.TaggedDecoder.tagBlock(Tagged.kt:296) at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableElement(Tagged.kt:279) at kotlinx.serialization.encoding.CompositeDecoder$DefaultImpls.decodeSerializableElement$default(Decoding.kt:535) at kotlinx.serialization.internal.ListLikeSerializer.readElement(CollectionSerializers.kt:80) at kotlinx.serialization.internal.AbstractCollectionSerializer.readElement$default(CollectionSerializers.kt:51) at kotlinx.serialization.internal.AbstractCollectionSerializer.merge(CollectionSerializers.kt:36) at kotlinx.serialization.internal.AbstractCollectionSerializer.deserialize(CollectionSerializers.kt:43) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63) at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:51) at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableValue(Tagged.kt:206) at kotlinx.serialization.internal.TaggedDecoder$decodeSerializableElement$1.invoke(Tagged.kt:279) at kotlinx.serialization.internal.TaggedDecoder.tagBlock(Tagged.kt:296) at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableElement(Tagged.kt:279) at xyz.cssxsh.weibo.data.UserBlog$$serializer.deserialize(MicroBlog.kt:125) at xyz.cssxsh.weibo.data.UserBlog$$serializer.deserialize(MicroBlog.kt:125) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63) at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:51) at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:24) at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:119) at xyz.cssxsh.weibo.api.StatusesKt.getUserMicroBlogs(Statuses.kt:135) at xyz.cssxsh.weibo.api.StatusesKt$getUserMicroBlogs$1.invokeSuspend(Statuses.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
-
@snowmoonss
1.4.6
尝试修复 -
-
好奇能不能把微博推送改成一个小程序卡片,就是移动端原生的那种,给一个可选的开启选项
-
@saltfish13
答案是可以,但是很麻烦,还会被腾讯当成伪造app消息风控 -
一个月没用,现在开机发现它会在轮询的时候,如果没有收到新消息,就发一个这样的空消息...
顺便,貌似一段时间不用再重启的话,会转发一些这段时间的微博(比如蹦一些半个月之前的微博),可以怎么清理缓存之类的吗? -
-
''简单的'',现在写插件这么卷吗,这功能好完善啊