mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-11-13 22:11:42 +08:00
chore: 废弃第三方友链提交功能,重构友链相关配置与分类逻辑
1. 移除linksSubmitPlugin相关配置与提交接口代码 2. 重构友链配置数据结构,拆分linkInfo为miniInfo/siteInfo/authorInfo 3. 优化分类页审核模式渲染逻辑,补充postCount默认值处理 4. 更新所有关联页面与组件的数据源读取逻辑
This commit is contained in:
@@ -377,19 +377,6 @@ export function createVerificationCode() {
|
||||
|
||||
/* ==================== 友链提交(linkssubmit.muyin.site) ==================== */
|
||||
|
||||
/**
|
||||
* 提交友链
|
||||
*/
|
||||
export function submitLink(form: ISubmitLinkForm) {
|
||||
return http.Post<IResponse<{ msg?: string, message?: string }>>('/apis/linkssubmit.muyin.site/v1alpha1/submit', form, {
|
||||
headers: {
|
||||
'Authorization': getLinksSubmitAuthorization(),
|
||||
'Wechat-Session-Id': getOpenid(),
|
||||
},
|
||||
meta: { requestFrom: RequestFrom.Halo },
|
||||
})
|
||||
}
|
||||
|
||||
/* ==================== 投票(api.vote.kunkunyu.com) ==================== */
|
||||
|
||||
/**
|
||||
@@ -510,13 +497,6 @@ function getToolsAuthorization(): string {
|
||||
return getAppConfigFromStore().pluginConfig?.toolsPlugin?.Authorization || ''
|
||||
}
|
||||
|
||||
/**
|
||||
* 友链提交插件授权头(源自应用配置 pluginConfig.linksSubmitPlugin.Authorization)
|
||||
*/
|
||||
function getLinksSubmitAuthorization(): string {
|
||||
return getAppConfigFromStore().pluginConfig?.linksSubmitPlugin?.Authorization || ''
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取应用配置(store 未就绪时兜底为空)
|
||||
* 注:待 src/store/appConfig.ts 建立后改为 useAppConfigStore 读取
|
||||
|
||||
Reference in New Issue
Block a user