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]aireply沫沫和婧枫报错 #952

Open
Amatsutsumi opened this issue Aug 9, 2024 · 2 comments
Open

[Bug]aireply沫沫和婧枫报错 #952

Amatsutsumi opened this issue Aug 9, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Amatsutsumi
Copy link

目前已经知道桑帛云加了key,于是我改动了部分lolimi.go的代码:
const (
lolimiURL = "http://apii.lolimi.cn"
// MomoURL api地址
MomoURL = lolimiURL + "/api/mmai/mm.php?api/mmai/mm?key=xxxxxxxxxxxxxxxxxxxxx&msg=%v"
// MomoBotName ...
MomoBotName = "沫沫"
// JingfengURL api地址
JingfengURL = lolimiURL + "/api/jjai/jj?key=xxxxxxxxxxxxxxxxxxxxxx&msg=%v"
// JingfengBotName ...
JingfengBotName = "婧枫"
结果浏览器端可以访问、落实到bot上就会报错:ERROR: status code: 500
请问如何解决呢

@fumiama
Copy link
Member

fumiama commented Aug 9, 2024

UA/Referer有问题吧,可以尽量模仿浏览器请求头。

@fumiama fumiama added the documentation Improvements or additions to documentation label Aug 9, 2024
@EatHatsuneShallots
Copy link
Contributor

EatHatsuneShallots commented Aug 12, 2024

你 API 地址填错了吧,应该是 /api/mmai/mm?key=xxxxxxxxxxxxxxxxxxxxx&msg=%v/api/jjai/jj?key=xxxxxxxxxxxxxxxxxxxxx&msg=%v

我测试是能直接用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants