From 49c0fda4e8326c13e353524b8b3dfbca22b90d81 Mon Sep 17 00:00:00 2001 From: yuexin Date: Sun, 14 Apr 2024 01:11:36 +0800 Subject: [PATCH] updateinvitecode get->post --- src/utils/webapi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/webapi.js b/src/utils/webapi.js index 860c926..aa83004 100644 --- a/src/utils/webapi.js +++ b/src/utils/webapi.js @@ -153,8 +153,8 @@ export const apiUserState = async () => { // 邀请新人 export const apiUploadInviteCode = async (code) => { - const url = `${API_BASE}/api/activity/upload_invite_code/?code=${code}`; - return httpGet(url) + const url = `${API_BASE}/api/activity/upload_invite_code`; + return httpPost(url, {code}) } // 探索状态