fix invite bug
This commit is contained in:
parent
b673d2f90b
commit
fc438913d6
@ -153,8 +153,8 @@ export const apiUserState = async () => {
|
|||||||
|
|
||||||
// 邀请新人
|
// 邀请新人
|
||||||
export const apiUploadInviteCode = async (code) => {
|
export const apiUploadInviteCode = async (code) => {
|
||||||
const url = `${API_BASE}/api/activity/upload_invite_code`;
|
const url = `${API_BASE}/api/activity/upload_invite_code/?code=${code}`;
|
||||||
return httpGet(url, { code })
|
return httpGet(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 探索状态
|
// 探索状态
|
||||||
|
@ -1165,7 +1165,6 @@ export default {
|
|||||||
|
|
||||||
// 领取助力奖励 || 判断是否是新用户
|
// 领取助力奖励 || 判断是否是新用户
|
||||||
async helpConfirm() {
|
async helpConfirm() {
|
||||||
debugger
|
|
||||||
if(this.$route.params.name != undefined) {
|
if(this.$route.params.name != undefined) {
|
||||||
let newInvite = this.$route.params.name.split("new=")[1];
|
let newInvite = this.$route.params.name.split("new=")[1];
|
||||||
// let rtoken = await checkReCaptcha("invite_user");
|
// let rtoken = await checkReCaptcha("invite_user");
|
||||||
@ -1173,6 +1172,7 @@ export default {
|
|||||||
// params: { code: newInvite, rtoken: rtoken },
|
// params: { code: newInvite, rtoken: rtoken },
|
||||||
// headers: { Authorization: `Bearer ${this.token}` }
|
// headers: { Authorization: `Bearer ${this.token}` }
|
||||||
// });
|
// });
|
||||||
|
console.log("[code]", newInvite)
|
||||||
let res = await apiUploadInviteCode(newInvite)
|
let res = await apiUploadInviteCode(newInvite)
|
||||||
if (res.data.errcode == 0) {
|
if (res.data.errcode == 0) {
|
||||||
this.isNewUser = 0
|
this.isNewUser = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user