1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-11 12:49:30 +08:00

1. 修复文章密码访问失效问题

This commit is contained in:
liuyiwuqing
2024-06-15 18:28:58 +08:00
parent 0b59f69fa0
commit 959acab9c7
2 changed files with 35 additions and 0 deletions
+13
View File
@@ -161,6 +161,19 @@ export default {
})
},
/**
* 校验文章访问密码
*/
checkPostPasswordAccess: (password, postId) => {
return HttpHandler.Get(`/apis/tools.muyin.site/v1alpha1/visitPassword/checkPost?password=${password}`, null, {
header: {
'Authorization': HaloPluginsConfig.toolsPlugin.Authorization,
'Wechat-Session-Id': uni.getStorageSync('openid'),
'Post-Id': postId
}
})
},
/**
* 获取文章验证码
*/