用weixin.tiefen.fun访问purchased页面时重定向到https://tiefen.fun/purchased
This commit is contained in:
parent
7fc65cad30
commit
60b8afbaec
|
@ -13,6 +13,10 @@ export default function Purchased() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const prepare = async () => {
|
const prepare = async () => {
|
||||||
|
if (window.location.origin === "https://weixin.tiefen.fun") {
|
||||||
|
router.replace("https://tiefen.fun/purchased");
|
||||||
|
return;
|
||||||
|
}
|
||||||
const isLogined = await checkAuth();
|
const isLogined = await checkAuth();
|
||||||
if (!isLogined) {
|
if (!isLogined) {
|
||||||
router.replace("/auth/login/phonenumlogin");
|
router.replace("/auth/login/phonenumlogin");
|
||||||
|
|
Loading…
Reference in New Issue