This commit is contained in:
eleanor.mao
2025-05-19 23:22:05 +08:00
parent dbfa53880f
commit 347c7d7cc9
2 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,8 @@ export const getInviteCode = async () => {
return inviteCode;
};
export const getProfitList = async (data: GetProfitRequest) => {
return await http.post<PartnerProfitItem[]>(API.GET_PROFIT_LIST, { data });
const result = await http.post<PartnerProfitItem[]>(API.GET_PROFIT_LIST, { data });
return Array.isArray(result) ? result : [];
};
export const formatMoney = (cents: number) => {
if (!cents) {