mirror of
https://github.com/woodchen-ink/openai-billing-query.git
synced 2025-07-18 05:51:59 +08:00
Merge pull request #7 from woodchen-ink:woodchen-ink/issue6
添加"预付费"和"后付费"的标签
This commit is contained in:
commit
93af0a70f1
19
index.html
19
index.html
@ -492,10 +492,27 @@
|
|||||||
}
|
}
|
||||||
//获取是否绑卡
|
//获取是否绑卡
|
||||||
try {
|
try {
|
||||||
isSubscrible = subscriptionData.plan.id.includes('payg') ? '✅' : '❌';
|
if (subscriptionData.plan.id.includes('payg')) {
|
||||||
|
switch (subscriptionData.billing_mechanism) {
|
||||||
|
case 'advance':
|
||||||
|
isSubscrible = '✅预付费';
|
||||||
|
break;
|
||||||
|
case 'arrears':
|
||||||
|
isSubscrible = '✅已欠费';
|
||||||
|
break;
|
||||||
|
case null:
|
||||||
|
isSubscrible = '✅后付费';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
isSubscrible = '✅';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
isSubscrible = '❌';
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取绑卡信息
|
//获取绑卡信息
|
||||||
try {
|
try {
|
||||||
// 从 subscriptionData 中获取 SubscribleInformation 的值...
|
// 从 subscriptionData 中获取 SubscribleInformation 的值...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user