MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / getAffLink

Function getAffLink

web/src/pages/TopUp/index.js:313–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311
312 // 获取邀请链接
313 const getAffLink = async () => {
314 const res = await API.get('/api/user/aff');
315 const { success, message, data } = res.data;
316 if (success) {
317 let link = `${window.location.origin}/register?aff=${data}`;
318 setAffLink(link);
319 } else {
320 showError(message);
321 }
322 };
323
324 // 划转邀请额度
325 const transfer = async () => {

Callers 1

index.jsFile · 0.85

Calls 1

showErrorFunction · 0.90

Tested by

no test coverage detected