Giter Club home page Giter Club logo

Comments (5)

Stapxs avatar Stapxs commented on August 11, 2024 1

自动检测的结果就是 json 所以显示成 json 了(x
逻辑是没错显示确实有点误导就是了

from stapxs-qq-lite-2.0.

Stapxs avatar Stapxs commented on August 11, 2024 1

不对啊 我发送CQ码的时候也不会识别啊,这不还是JSON么(悲)

https://napneko.github.io/zh-CN/guide/config
处不处理 CQCode 是 napcat 的设置决定的,这个设置主要是用来解析收到的是 CQCode 的情况 emmm

不过我发现我这 CQ 码兼容确实也坏了(
疑似由 85db735 一开始做 jsonPath 动态配置文件的时候就坏掉了也没人用 CQCode 一直没发现 XD

switch(msgPath.message_list._type.split('|')[0]) {
case 'cq-code': {
// 这儿会默认处理成 oicq2 的格式,所以 CQCode 消息请使用 oicq2 配置文件修改
for (let i = 0; i < list.length; i++) {
list[i] = Util.parseCQ(list[i])
}
break
}
case 'json_with_data': {
// 非扁平化消息体,这儿会取 _type 后半段的 JSON Path 将结果并入 message
for (let i = 0; i < list.length; i++) {
for(let j = 0; j < list[i].message.length; j++) {
const data = getMsgData('message_list_message', list[i].message[j], msgPath.message_list._type.split('|')[1])
if(data != undefined && data.length == 1) {
list[i].message[j] = Object.assign(list[i].message[j], data[0])
}
}
}
}
}

from stapxs-qq-lite-2.0.

Stapxs avatar Stapxs commented on August 11, 2024 1

更新已提交部署,可以康康有没有什么问题然后关掉 issue(瘫

from stapxs-qq-lite-2.0.

MoonLeeeaf avatar MoonLeeeaf commented on August 11, 2024

自动检测的结果就是 json 所以显示成 json 了(x 逻辑是没错显示确实有点误导就是了

不对啊 我发送CQ码的时候也不会识别啊,这不还是JSON么(悲)

另外设在成CQ码什么的刷新也会变成JSON()

可能是逻辑有点问题力(逃)

from stapxs-qq-lite-2.0.

MoonLeeeaf avatar MoonLeeeaf commented on August 11, 2024

目前没问题(摊
谢谢作者()

from stapxs-qq-lite-2.0.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.