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

Function getUserQuota

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

Source from the content-addressed store, hash-verified

297 };
298
299 const getUserQuota = async () => {
300 setUserDataLoading(true);
301 let res = await API.get(`/api/user/self`);
302 const { success, message, data } = res.data;
303 if (success) {
304 setUserQuota(data.quota);
305 userDispatch({ type: 'login', payload: data });
306 } else {
307 showError(message);
308 }
309 setUserDataLoading(false);
310 };
311
312 // 获取邀请链接
313 const getAffLink = async () => {

Callers 2

transferFunction · 0.85
index.jsFile · 0.85

Calls 1

showErrorFunction · 0.90

Tested by

no test coverage detected