aixxai 1.7.16 → 1.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/subscribe.js +5 -1
- package/aixxai-1.6.9.tgz +0 -0
package/package.json
CHANGED
|
@@ -24,12 +24,16 @@ export async function subscribe(subArgs) {
|
|
|
24
24
|
const plan = (rest[0] || '').toLowerCase();
|
|
25
25
|
const chArg = (subArgs || []).find((a) => a.startsWith('--channel'));
|
|
26
26
|
const channel = chArg ? chArg.split('=')[1] || subArgs[(subArgs.indexOf(chArg) + 1)] || '' : 'alipay';
|
|
27
|
+
// 1202 K哥令: USDT多链(照搬商城三链 TRC20/ERC20/SOL)——--network usdt.erc20 等·仅usdt通道生效
|
|
28
|
+
const netArg = (subArgs || []).find((a) => a.startsWith('--network'));
|
|
29
|
+
const network = netArg ? netArg.split('=')[1] || subArgs[(subArgs.indexOf(netArg) + 1)] || 'usdt.trc20' : 'usdt.trc20';
|
|
27
30
|
|
|
28
31
|
if (!plan || !PLANS[plan]) {
|
|
29
32
|
console.log('用法: aixx subscribe <1m|3m|6m|12m> [--channel alipay|wxpay|usdt]\n');
|
|
30
33
|
console.log('示例:');
|
|
31
34
|
console.log(' aixx subscribe 1m 一个月档(支付宝扫码/打开)');
|
|
32
35
|
console.log(' aixx subscribe 12m --channel usdt 年档USDT付款');
|
|
36
|
+
console.log(' aixx subscribe 3m --channel usdt --network usdt.erc20 指定链(TRC20/ERC20/SOL)');
|
|
33
37
|
console.log('\n订阅=行情数据API六域全开(速率60次/分·3000次/日·免费80次额度之外的高流量档)。');
|
|
34
38
|
return;
|
|
35
39
|
}
|
|
@@ -45,7 +49,7 @@ export async function subscribe(subArgs) {
|
|
|
45
49
|
const r = await fetch(CHECKOUT, {
|
|
46
50
|
method: 'POST',
|
|
47
51
|
headers: { Authorization: `Bearer ${apiKey}`, 'Content-Type': 'application/json' },
|
|
48
|
-
body: JSON.stringify({ item: `sub:${plan}`, channel }),
|
|
52
|
+
body: JSON.stringify({ item: `sub:${plan}`, channel, ...(channel === 'usdt' ? { network } : {}) }),
|
|
49
53
|
signal: AbortSignal.timeout(FETCH_TIMEOUT),
|
|
50
54
|
});
|
|
51
55
|
const j = await r.json().catch(() => ({}));
|
package/aixxai-1.6.9.tgz
DELETED
|
Binary file
|