import{g as e,br as u,e as r,f as a}from"./index.d1dca38b.js";const t=()=>{if(r({api:"back"}),a().isApp){const o=window.location.origin+location.pathname+"#/memberCenter";r({api:"openWebView",content:{url:o,orientation:1}});return}location.href=location.origin+location.pathname+"#/memberCenter"},i=()=>{if(e.platformType=="STUDENT"){if(!e.user.data.membershipDays&&e.user.data.purchaseMemberRecord)return u({title:"\u6E29\u99A8\u63D0\u793A",message:"\u60A8\u7684\u56E2\u7EC3\u5B9D\u6682\u672A\u6FC0\u6D3B\uFF0C\u8BF7\u6FC0\u6D3B\u540E\u4F7F\u7528"}).then(()=>{t()}),!1;if(!e.user.data.vipMember)return u({title:"\u6E29\u99A8\u63D0\u793A",message:"\u60A8\u6682\u672A\u5F00\u901A\u56E2\u7EC3\u5B9D\uFF0C\u8BF7\u5F00\u901A\u540E\u4F7F\u7528"}).then(()=>{t()}),!1}return!0};export{i as h};
