From ae433695cb2e8af331abf1f16a69c174051c2296 Mon Sep 17 00:00:00 2001 From: invalid w Date: Mon, 3 Jun 2024 11:16:31 +0800 Subject: [PATCH] chore(yanwen): change requestHelp -> genRequest --- packages/yanwen/package.json | 2 +- packages/yanwen/src/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/yanwen/package.json b/packages/yanwen/package.json index 849ba71..c9c590b 100644 --- a/packages/yanwen/package.json +++ b/packages/yanwen/package.json @@ -1,6 +1,6 @@ { "name": "@cn-international-express-sdk/yanwen", - "version": "2.0.2", + "version": "2.0.3", "types": "./dist/types/index.d.ts", "main": "./dist/lib/index.js", "module": "./dist/es/index.js", diff --git a/packages/yanwen/src/index.ts b/packages/yanwen/src/index.ts index 76543de..421987d 100644 --- a/packages/yanwen/src/index.ts +++ b/packages/yanwen/src/index.ts @@ -20,7 +20,7 @@ export class YanWen { const data = { waybillNumber: orderNumber, }; - const res = await this.requestHelp<{ + const res = await this.genRequest<{ data: { base64String: string; }; @@ -29,7 +29,7 @@ export class YanWen { return buffer; } - async requestHelp(action: string, reqData: Recordable = {}) { + async genRequest(action: string, reqData: Recordable = {}) { const json: Recordable = { user_id: this.config.app_key, format: 'json',