debug
This commit is contained in:
parent
8d172da89e
commit
614aa92b6e
|
@ -100,6 +100,24 @@ export default function Vip() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type === "coin") {
|
||||||
|
window.ReactNativeWebView.postMessage(
|
||||||
|
JSON.stringify({
|
||||||
|
type: "COINPAY",
|
||||||
|
data: {
|
||||||
|
url: "/api/vas/create_order",
|
||||||
|
body: { product_id: "membership" },
|
||||||
|
product: "会员资格",
|
||||||
|
coinPrice: 100,
|
||||||
|
validity: "永久",
|
||||||
|
info: "",
|
||||||
|
onPurchaseDone: () => {},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
|
|
||||||
const signature = generateSignature(body);
|
const signature = generateSignature(body);
|
||||||
|
@ -122,22 +140,6 @@ export default function Vip() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "coin":
|
|
||||||
window.ReactNativeWebView.postMessage(
|
|
||||||
JSON.stringify({
|
|
||||||
type: "COINPAY",
|
|
||||||
data: {
|
|
||||||
url: "/api/vas/create_order",
|
|
||||||
body: { product_id: data.data.product.id },
|
|
||||||
product: data.data.product.name,
|
|
||||||
coinPrice: data.data.product.real_coin_price,
|
|
||||||
validity: "永久",
|
|
||||||
info: "",
|
|
||||||
onPurchaseDone: () => {},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
);
|
|
||||||
break;
|
|
||||||
case "iap":
|
case "iap":
|
||||||
window.ReactNativeWebView.postMessage(
|
window.ReactNativeWebView.postMessage(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
|
|
Loading…
Reference in New Issue