1
0
spegling av https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 13:19:31 +08:00

!25 支持文章自定义验证码获取方式、优化友链提交页面

* fix(提交链接): 修复博客 logo 显示问题
* feat(plugin): 重构友链提交插件配置
* feat(api): 为 restrict-read 请求添加微信会话 ID 并支持自定义验证码类型
This commit is contained in:
liuyiwuqing
2025-06-15 06:37:50 +00:00
committad av 小莫唐尼
förälder 552827eaac
incheckning 051c72b584
5 ändrade filer med 19 tillägg och 7 borttagningar
+5 -1
Visa fil
@@ -483,7 +483,11 @@ export default {
const restrictRead = checkPostRestrictRead(this.result);
if (restrictRead && toolsPluginEnabled) {
const verifyCodeType = getAppConfigs().pluginConfig.toolsPlugin?.verifyCodeType;
let verifyCodeType = getAppConfigs().pluginConfig.toolsPlugin?.verifyCodeType;
const postVerifyCodeType = this.result?.metadata?.annotations?.verifyCodeType;
if (postVerifyCodeType) {
verifyCodeType = postVerifyCodeType;
}
if (verifyCodeType === 'scan') {
const scanCodeUrl = getAppConfigs().pluginConfig.toolsPlugin?.scanCodeUrl;
this.verificationCodeModal.type = 'scan';