réplica de
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
1. 文章验证码相关接口更新;
2. 友链提交相关接口更新;
Este commit está contenido en:
+3
-3
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Referencia en una nueva incidencia
Block a user