mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-11 12:49:30 +08:00
1. 文章验证码相关接口更新;
2. 友链提交相关接口更新;
This commit is contained in:
+3
-3
@@ -151,7 +151,7 @@ export default {
|
||||
* 校验文章访问密码
|
||||
*/
|
||||
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: {
|
||||
'Authorization': 'Tools工具箱插件设置的认证token',
|
||||
'Wechat-Session-Id': uni.getStorageSync('openid'),
|
||||
@@ -164,7 +164,7 @@ export default {
|
||||
* 获取文章验证码
|
||||
*/
|
||||
getPostVerifyCode: () => {
|
||||
return HttpHandler.Get(`/tools/verificationCode/create`, null, {
|
||||
return HttpHandler.Get(`/apis/tools.muyin.site/v1alpha1/verificationCode/create`, null, {
|
||||
header: {
|
||||
'Authorization': 'Tools工具箱插件设置的认证token'
|
||||
}
|
||||
@@ -174,6 +174,6 @@ export default {
|
||||
* 提交友情链接
|
||||
*/
|
||||
submitLink(form) {
|
||||
return HttpHandler.Post(`/linksSubmit/links`, form, null)
|
||||
return HttpHandler.Post(`/apis/linksSubmit.muyin.site/v1alpha1/submit`, form, null)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user