MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    Weibo Helper 一个简单的将微博转发到QQ的插件

    插件发布
    微博 weibo
    36
    140
    20286
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • cssxsh
      cssxsh @Mous 最后由 编辑

      @mous
      是否有关闭mirai的行为,
      如果有的话,请使用/stop命令正常关闭
      不然的话,cookie保存可能出现异常

      1 条回复 最后回复 回复 引用 1
      • T
        Twiyin0 最后由 编辑

        此回复已被删除!
        1 条回复 最后回复 回复 引用 0
        • Echoosx
          Echoosx 最后由 编辑

          想问一下这个快速和慢速轮询,是按照一天的时间段来回切换模式吗

          1 条回复 最后回复 回复 引用 0
          • M
            Mous 最后由 编辑

            首先谢谢大佬上次回复,上次问题没出现过了。
            但是今天重启时候使用/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>
            "
            

            这是被风控了?

            cssxsh 2 条回复 最后回复 回复 引用 0
            • cssxsh
              cssxsh @Mous 最后由 编辑

              @echoosx
              登录失败了,重试就行了

              1 条回复 最后回复 回复 引用 0
              • cssxsh
                cssxsh @Mous 最后由 cssxsh 编辑

                @mous
                尝试修复了一下,with 1.4.1

                M 1 条回复 最后回复 回复 引用 0
                • M
                  Mous @cssxsh 最后由 编辑

                  @cssxsh
                  更新了最新版的,问题已经解决了!感谢大佬

                  1 条回复 最后回复 回复 引用 0
                  • Q
                    qwertahzz 最后由 编辑

                    好像登录不了qwq扫了码在手机上确认登录之后,mcl没反应

                    cssxsh 1 条回复 最后回复 回复 引用 0
                    • cssxsh
                      cssxsh @qwertahzz 最后由 编辑

                      @qwertahzz 在命令行中登录?命令行下执行登录指令的话,没有错误信息就是登陆成功了。

                      Q 2 条回复 最后回复 回复 引用 0
                      • Q
                        qwertahzz @cssxsh 最后由 编辑

                        此回复已被删除!
                        1 条回复 最后回复 回复 引用 0
                        • Q
                          qwertahzz @cssxsh 最后由 编辑

                          @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看不到这个插件相关的指令

                          cssxsh 1 条回复 最后回复 回复 引用 0
                          • cssxsh
                            cssxsh @qwertahzz 最后由 编辑

                            @qwertahzz
                            这是 mirai-2.9.0-RC 的问题,请尝试降级

                            1 条回复 最后回复 回复 引用 0
                            • SnowMoonSS
                              SnowMoonSS 最后由 编辑

                              今天突然就这样了……
                              聊天信息

                              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)
                              
                              cssxsh 1 条回复 最后回复 回复 引用 0
                              • cssxsh
                                cssxsh @SnowMoonSS 最后由 编辑

                                @snowmoonss
                                1.4.6 尝试修复

                                SnowMoonSS 1 条回复 最后回复 回复 引用 0
                                • SnowMoonSS
                                  SnowMoonSS @cssxsh 最后由 编辑

                                  @cssxsh 在 Weibo Helper 一个简单的将微博转发到QQ的插件 中说:

                                  @snowmoonss
                                  1.4.6 尝试修复

                                  更新到1.4.6了,没有再跳这个错误了,感谢修复efd8089a-1928-4059-bc82-a01e3301ce09-BD2`V[Y1DLEH739V)Z5VD]Y.jpg

                                  1 条回复 最后回复 回复 引用 0
                                  • S
                                    saltfish13 最后由 编辑

                                    好奇能不能把微博推送改成一个小程序卡片,就是移动端原生的那种,给一个可选的开启选项

                                    cssxsh 1 条回复 最后回复 回复 引用 0
                                    • cssxsh
                                      cssxsh @saltfish13 最后由 编辑

                                      @saltfish13
                                      答案是可以,但是很麻烦,还会被腾讯当成伪造app消息风控

                                      1 条回复 最后回复 回复 引用 0
                                      • Q
                                        qwertahzz 最后由 编辑

                                        一个月没用,现在开机发现它会在轮询的时候,如果没有收到新消息,就发一个这样的空消息...
                                        替代文字
                                        顺便,貌似一段时间不用再重启的话,会转发一些这段时间的微博(比如蹦一些半个月之前的微博),可以怎么清理缓存之类的吗?

                                        cssxsh 1 条回复 最后回复 回复 引用 0
                                        • cssxsh
                                          cssxsh @qwertahzz 最后由 编辑

                                          @qwertahzz
                                          ?

                                          1 条回复 最后回复 回复 引用 0
                                          • daisy524
                                            daisy524 最后由 编辑

                                            ''简单的'',现在写插件这么卷吗,这功能好完善啊

                                            1 条回复 最后回复 回复 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 3 / 7
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact