aixxai 1.7.15 → 1.7.17

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aixxai",
3
- "version": "1.7.15",
3
+ "version": "1.7.17",
4
4
  "description": "AIXX CLI - 让你的AI调用万物。One command, every AI model. By AIXX (Wanan Exchange), the verification-first compute exchange. 安装:npx aixxai",
5
5
  "type": "module",
6
6
  "bin": {
@@ -113,6 +113,11 @@ function printNakedIdentity(nj) {
113
113
  console.log('🪪 你的萬安云身份编号:' + nj.id);
114
114
  console.log(' 登录密码:' + nj.password + ' (请妥善保管,可在个人中心登录并修改)');
115
115
  console.log(' 个人中心:https://console.aixx.ai/console-app.html');
116
+ console.log('');
117
+ console.log(' 💡 当前是临时身份:数据API免费 10 次。');
118
+ console.log(' 打开 https://aixx.ai/data-api-start.html 获取你的专属码,然后重新运行:');
119
+ console.log(' npx aixxai install <你的专属码>');
120
+ console.log(' 免费额度即升级到 80 次,并并入你的萬安云账户(余额/订阅通用)。');
116
121
  }
117
122
 
118
123
  async function autoRegister(baseUrl, refCode, bindCode) {
@@ -69,7 +69,10 @@ export async function status() {
69
69
  const apiKey = loadApiKey();
70
70
  console.log('── 安装身份 ──');
71
71
  if (id) {
72
- console.log(`🪪 萬安云身份编号:${id.id}${id.kind === 'naked' ? '(裸注册身份)' : ''}`);
72
+ console.log(`🪪 萬安云身份编号:${id.id}${id.kind === 'naked' ? '(临时身份·数据API免费10次)' : ''}`);
73
+ if (id.kind === 'naked') {
74
+ console.log(' 💡 打开 https://aixx.ai/data-api-start.html 拿专属码重装 → 免费额度升到80次+并入你的云账户');
75
+ }
73
76
  console.log(' 可在个人中心「账号设置 → 绑定安装身份」并入你的账户');
74
77
  } else {
75
78
  console.log('🪪 未找到本地身份(尚未安装?运行 npx aixxai install)');
@@ -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(() => ({}));