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

随机定时在青龙2.12.1提示成功,但是实际没修改任务cron #144

Closed
fidcz opened this issue Aug 9, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@fidcz
Copy link

fidcz commented Aug 9, 2022

屏幕截图 2022-08-09 120325

check.toml相关key填写正常,查看api_ran_time.py代码中96行

            requests.put(url=self.url + "open/crons",
                         data=data,
                         headers={"Authorization": f"Bearer {self.token}"})

青龙接口这里需要的是JSON,如果按照原来的方式返回的是
{"code":500,"message":"Validation failed"}

改成下面这样就正常

            requests.put(url=self.url + "open/crons",
                         json=data,
                         headers={"Authorization": f"Bearer {self.token}"})
ghost pushed a commit that referenced this issue Aug 9, 2022
@ghost ghost added the bug Something isn't working label Aug 9, 2022
@ghost
Copy link

ghost commented Aug 9, 2022

已修复

@ghost ghost closed this as completed Aug 10, 2022
Oreomeow added a commit that referenced this issue Aug 31, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant