eprolo-cli 1.0.53 → 1.0.54

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/bin/eprolo-cli.js CHANGED
@@ -183,13 +183,12 @@ function authLogout() {
183
183
  // orders query — 查询订单(带 401 自动刷新)
184
184
  // ---------------------------------------------------------------------------
185
185
 
186
- async function queryOrders() {
186
+ async function queryOrders(orderId) {
187
187
  const config = readConfig();
188
188
  if (!config.accessToken) {
189
189
  console.error(JSON.stringify({ success: false, errorMessage: "未授权,请先登录" }));
190
190
  process.exit(1);
191
191
  }
192
- const orderId = readFlag(argv, "--order-id");
193
192
  if (!orderId) {
194
193
  console.error(JSON.stringify({ success: false, errorMessage: "缺少订单 ID" }));
195
194
  process.exit(1);
@@ -258,7 +257,7 @@ async function main() {
258
257
  }
259
258
 
260
259
  if (argv[0] === "orders") {
261
- await queryOrders();
260
+ await queryOrders(argv[1]);
262
261
  return;
263
262
  }
264
263
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "CLI for Dianxiaobao ICBU AI publishing, authorization profile management, task submission, and task status checks.",
5
5
  "bin": {
6
6
  "eprolo": "bin/eprolo-cli.js"