Skip to content

Commit 2fd2c6c

Browse files
committed
ChinaTelecom_2024.js
1 parent 858dfad commit 2fd2c6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Scriptable/ChinaTelecom_2024.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,12 @@ async function main() {
240240
const flowBalance = (balanceFlow / 1048576).toFixed(2);
241241
const flow = flowTotal > 0 ? ((flowBalance / flowTotal) * 100).toFixed(1) : 0;
242242
// 格式化流量
243-
const flowBalFormat = formatFlows(flowTotal) || 0;
243+
const flowBalFormat = formatFlows(flowBalance) || 0;
244244

245245
// 余额
246246
const fetchBalance = async () => {
247247
const balances = await getCacheString('balance.json', 'https://e.dlife.cn/user/balance.do');
248-
return balances || {}
248+
return balances || {};
249249
};
250250

251251
const bal = await fetchBalance();

0 commit comments

Comments
 (0)