mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-20 02:20:15 +09:00
1. 文章验证码相关接口更新;
2. 友链提交相关接口更新;
This commit is contained in:
parent
a67ad88c3f
commit
ab755a8623
@ -151,7 +151,7 @@ export default {
|
|||||||
* 校验文章访问密码
|
* 校验文章访问密码
|
||||||
*/
|
*/
|
||||||
checkPostVerifyCode: (verifyCode, postId) => {
|
checkPostVerifyCode: (verifyCode, postId) => {
|
||||||
return HttpHandler.Get(`/tools/verificationCode/check?code=${verifyCode}`, null, {
|
return HttpHandler.Get(`/apis/tools.muyin.site/v1alpha1/verificationCode/check?code=${verifyCode}`, null, {
|
||||||
header: {
|
header: {
|
||||||
'Authorization': 'Tools工具箱插件设置的认证token',
|
'Authorization': 'Tools工具箱插件设置的认证token',
|
||||||
'Wechat-Session-Id': uni.getStorageSync('openid'),
|
'Wechat-Session-Id': uni.getStorageSync('openid'),
|
||||||
@ -164,7 +164,7 @@ export default {
|
|||||||
* 获取文章验证码
|
* 获取文章验证码
|
||||||
*/
|
*/
|
||||||
getPostVerifyCode: () => {
|
getPostVerifyCode: () => {
|
||||||
return HttpHandler.Get(`/tools/verificationCode/create`, null, {
|
return HttpHandler.Get(`/apis/tools.muyin.site/v1alpha1/verificationCode/create`, null, {
|
||||||
header: {
|
header: {
|
||||||
'Authorization': 'Tools工具箱插件设置的认证token'
|
'Authorization': 'Tools工具箱插件设置的认证token'
|
||||||
}
|
}
|
||||||
@ -174,6 +174,6 @@ export default {
|
|||||||
* 提交友情链接
|
* 提交友情链接
|
||||||
*/
|
*/
|
||||||
submitLink(form) {
|
submitLink(form) {
|
||||||
return HttpHandler.Post(`/linksSubmit/links`, form, null)
|
return HttpHandler.Post(`/apis/linksSubmit.muyin.site/v1alpha1/submit`, form, null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user