Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 无法处理加群请求,FLAG不存在 #1325

Closed
3 tasks done
Eric-Joker opened this issue Jan 13, 2022 · 4 comments
Closed
3 tasks done

[Bug]: 无法处理加群请求,FLAG不存在 #1325

Eric-Joker opened this issue Jan 13, 2022 · 4 comments
Labels
bug? The issue author think this is a bug duplicate This issue or pull request already exists

Comments

@Eric-Joker
Copy link

Eric-Joker commented Jan 13, 2022

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经仔细阅读上述教程和 "提问前需知"
  • 我已知晓并同意,如果我不遵循以下格式提交 Issue,或者我使用的并非最新版本,或者我没有提供足够的环境信息,我的 Issue 可能会被无条件自动关闭或/并锁定。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。)

go-cqhttp 版本

v1.0.0-beta8-fix2

运行环境

Windows (64)

运行架构

ARM [64] (别名:AArch64 / ARMv8)

连接方式

HTTP

使用协议

1 | Android Phone

重现步骤

使用/set_group_add_request接口

期望的结果是什么?

正常处理入群申请

实际的结果是什么?

显示flag不存在。将得到的消息flag通过api回调,得到结果如下:

{"data":null,"msg":"FLAG_NOT_FOUND","retcode":100,"status":"failed","wording":"FLAG不存在"}

简单的复现代码/链接(可选)

def 入群申请(QQ, 群号, flag, sub_type):
    if 群号 == *:
        requests.get(url="http://127.0.0.1:3483/set_group_add_request?flag={0}&sub_type={1}".format(flag, sub_type))

日志记录(可选)

处理群系统消息失败: 消息 1639190095763269 不存在.
(只有这一条

补充说明(可选)


#1016
#1241
完全相同,但是从1016中并没有找到有效的解决办法
对flag参数加上双引号或者单引号报错依旧

@Eric-Joker Eric-Joker added the bug? The issue author think this is a bug label Jan 13, 2022
@wdvxdr1123 wdvxdr1123 added the duplicate This issue or pull request already exists label Jan 14, 2022
@wdvxdr1123
Copy link
Collaborator

see #1241

@doiemo
Copy link

doiemo commented Jan 30, 2022

p1 := p.Get("[sub_type,type].0").String()

修改成 p1 := p.Get("sub_type").String()

原因获取不到sub_type或type的值

@Ink-33
Copy link
Contributor

Ink-33 commented Jan 30, 2022

p1 := p.Get("[sub_type,type].0").String()

修改成 p1 := p.Get("sub_type").String()

原因获取不到sub_type或type的值

p1 := p.Get("[sub_type,type].0").String()应该没有问题

wdvxdr1123 added a commit that referenced this issue Jan 30, 2022
@doiemo
Copy link

doiemo commented Jan 30, 2022

p1 := p.Get("[sub_type,type].0").String()
修改成 p1 := p.Get("sub_type").String()
原因获取不到sub_type或type的值

p1 := p.Get("[sub_type,type].0").String()应该没有问题

嗯,代码是没问题..

具体原因是get和post问题
用post 提交json就没问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? The issue author think this is a bug duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants