使1.5.0版本ios能够购买会员
This commit is contained in:
parent
ef274597a8
commit
3565124a88
|
@ -9,15 +9,6 @@ import { useRouter, useSearchParams } from "next/navigation";
|
||||||
export default function Vip() {
|
export default function Vip() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
const alipayBlock = () => {
|
|
||||||
if (base?.b_mid === 161) {
|
|
||||||
createOrder("alipay_h5");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Toast.show({
|
|
||||||
content: "支付渠道维护升级中,请24小时后再试",
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
//检查用户是否是vip
|
//检查用户是否是vip
|
||||||
const [isVip, setIsVip] = useState(false);
|
const [isVip, setIsVip] = useState(false);
|
||||||
|
@ -86,7 +77,7 @@ export default function Vip() {
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
const createOrder = async (type = "alipay_h5") => {
|
const createOrder = async (type = "alipay_h5") => {
|
||||||
const base = webviewBaseRequest();
|
const base = webviewBaseRequest();
|
||||||
if (base?.b_dt === 1) {
|
if (base?.b_dt === 1 && base?.b_ver !== "1.5.0") {
|
||||||
Toast.show({
|
Toast.show({
|
||||||
content: "ios暂时无法开通会员,请等待版本更新",
|
content: "ios暂时无法开通会员,请等待版本更新",
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue