const c={INVITE_CODE_NOT_FOUND:"推荐码不存在，请检查后重试。",INVITE_SELF_NOT_ALLOWED:"不能填写自己的推荐码。",INVITE_LOOP_DETECTED:"该推荐关系无效，请更换推荐码。"};function O(r){var a,n,t,o,E,_;const e=r||{},s=e.reason||((n=(a=e.response)==null?void 0:a.data)==null?void 0:n.reason);return s&&c[s]?c[s]:((o=(t=e.response)==null?void 0:t.data)==null?void 0:o.detail)||((_=(E=e.response)==null?void 0:E.data)==null?void 0:_.message)||e.message||""}function T(r,e){const{fallback:s}=e;return O(r)||s}export{T as b};
