MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    怎么构造那种小程序卡片呢?

    开发交流
    2
    6
    656
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hhhh last edited by

      9a408136-86a2-4388-bb40-b9f8d7f13f0f-image.png
      像上面那种图片一样的但是不能被点击,因为点击没有任何反应,下面是获取到的json字符,感谢大佬们了

      {
        "app": "com.tencent.gxhServiceIntelligentTip",
        "desc": "狗妈",
        "view": "gxhServiceIntelligentTip",
        "bizsrc": "",
        "ver": "",
        "prompt": "喵喵喵~",
        "appID": "",
        "sourceName": "",
        "actionData": "",
        "actionData_A": "",
        "sourceUrl": "",
        "meta": {
          "gxhServiceIntelligentTip": {
            "action": "",
            "appid": "gxhServiceIntelligentTip",
            "bgImg": "http://p.qlogo.cn/homework/0/hw_h_5sqy32gbfywwccc65dd9e9285dd1/0/1",
            "reportParams": {}
          }
        },
        "config": {
          "autoSize": 0,
          "ctime": 1691351380,
          "forward": 1,
          "height": 800,
          "token": "56fb9e3906cbff5071fe2d0beead51e0",
          "type": "normal",
          "width": 600
        },
        "text": "shiyan",
        "extraApps": [],
        "sourceAd": "",
        "extra": ""
      }
      
      1 Reply Last reply Reply Quote 0
      • H
        hhhh last edited by hhhh

        LightApp app = new LightApp();
        

        用上面的方法能够发出去,但是自己按照格式改了一下后可以在mirai后台看到输出但是客户端不能看到东西

        1 Reply Last reply Reply Quote 0
        • MrXiaoM
          MrXiaoM 童心未泯 last edited by

          发 json 消息需要签名(不是签名服务),即token的值。没有签名就发出去看不到

          H 1 Reply Last reply Reply Quote 0
          • H
            hhhh @MrXiaoM last edited by

            @MrXiaoM 大佬知道怎么获取这个签名吗

            MrXiaoM 1 Reply Last reply Reply Quote 0
            • MrXiaoM
              MrXiaoM 童心未泯 @hhhh last edited by

              @hhhh 我不知道

              H 1 Reply Last reply Reply Quote 0
              • H
                hhhh @MrXiaoM last edited by

                @MrXiaoM 那好吧,谢谢大佬了

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact