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

修改推送为deploy完成后&&新增设置指定文章不推送 #9

Merged
merged 1 commit into from
May 22, 2023

Conversation

GoodBoyboy666
Copy link
Contributor

1、将获取服务端newpost.json代码与推送代码分离,推送代码放置于deployafter,可以有效避免在延迟推送设置为立即推送时由于deploy耗时过长导致推送先于deploy完成以至于用户收到推送时显示文章不存在
2、新增指定文章不推送。在文章的Front-matter内加入disnotification: true即可跳过该推送,避免老文章修改后推送
代码已经过初步功能性测试,测试结果通过
因时间原因未进行系统性完整测试,可能存在潜在bug(目前暂未发现),建议自行测试一次

@CCKNBC CCKNBC self-assigned this May 22, 2023
@CCKNBC CCKNBC merged commit e5b51f5 into Rock-Candy-Tea:main May 22, 2023
@CCKNBC
Copy link
Member

CCKNBC commented May 22, 2023

昨晚上尝试了一下,我这边修改了部分错误的逻辑
应该是因为deploy前后分离 无法读取相关变量导致的问题
可能还要优化一下json 保存与获取这块,感谢PR

@CCKNBC CCKNBC linked an issue May 22, 2023 that may be closed by this pull request
@CCKNBC CCKNBC added the enhancement New feature or request label May 22, 2023
@GoodBoyboy666
Copy link
Contributor Author

没学过JavaScript,都是赶鸭子上架🤣临时学的,感觉变量传递这块和c++,c#有些区别

@CCKNBC
Copy link
Member

CCKNBC commented May 23, 2023

我也是赶鸭子上架,本来是小白自用的,看看AI能不能解决这些问题吧,他倒是提了很多意见可以参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.1.7推送出现逻辑错误导致无法有效推送
2 participants