-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat: 添加推送到Bing支持 #2379
Open
sysfox
wants to merge
9
commits into
mx-space:master
Choose a base branch
from
sysfox:bing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: 添加推送到Bing支持 #2379
+83
−8
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 在 errorCode.constant.ts 中添加 Bing 相关的错误代码 - 在 configs.dto.ts 中添加 BingSearchOptionDto 类用于配置 Bing 推送选项 - 在 helper.cron.service.ts 中实现 pushToBingSearch 方法进行 Bing 搜索推送
- 在默认配置中添加 bingSearchOptions 项 - 更新 BingSearchOptionDto 类,统一字段命名 - 在 IConfig 接口中添加 bingSearchOptions 字段 - 修改 CronService 中的 pushToBingSearch 方法,适配新配置
- 将 CDN 下载 URL 从 `https://mirror.ghproxy.com/` 更改为 `https://ghfast.top/`
- 新增 BingSearchOptionsModel 类,用于 Bing 搜索的配置选项 - 该模型包括 enable 和 token 两个属性,与 BaiduSearchOptionsModel 类似
- 将 BingSearchOptionDto 重命名为 BingSearchOptionsDto,与 BaiduSearchOptionsDto 保持一致 - 更新相关引用和配置字段类型
@Innei
|
删除数据库重新部署后服务正常,测试成功 |
2a7167e
to
276d4cb
Compare
- 在 CronService 类中添加了 pushToBingSearch 方法 - 使用 @CronOnce 装饰器设置任务执行时间为每天凌晨1点 - 任务名称为 'pushToBingSearch' - 方法描述为 '推送到Bing'
- 在.gitignore文件中添加.eslintcache,避免eslint缓存文件被版本控制
- 修改了 Bing 站长提交结果的日志输出格式 - 当提交成功时,输出简短的成功日志 - 当提交失败时,仍输出详细的错误信息
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Linked Issues
Additional context