Closed CopilotLaLaLa closed 3 months ago
1.message文本前有隐形字符,规范的文本格式使用startsWith方法返回false,使用trim方法去除后能正常进入判断分支 2.go-cqhttp返回的url中带有'amp;'转义,需要替换掉才能获取player_id和record_id
更改 go-cqhttp 目录下 config.yml 内 post-format: string 为 post-format: array 即可解决
config.yml
post-format: string
post-format: array
确实
1.message文本前有隐形字符,规范的文本格式使用startsWith方法返回false,使用trim方法去除后能正常进入判断分支 2.go-cqhttp返回的url中带有'amp;'转义,需要替换掉才能获取player_id和record_id