1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 21:29: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
committed by 小莫唐尼
parent 552827eaac
commit 051c72b584
5 changed files with 19 additions and 7 deletions
+5 -1
View File
@@ -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';