Skip to content

Commit

Permalink
chore(yanwen): change requestHelp -> genRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Jun 3, 2024
1 parent f91cbe1 commit ae43369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/yanwen/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/yanwen/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class YanWen {
const data = {
waybillNumber: orderNumber,
};
const res = await this.requestHelp<{
const res = await this.genRequest<{
data: {
base64String: string;
};
Expand All @@ -29,7 +29,7 @@ export class YanWen {
return buffer;
}

async requestHelp<T>(action: string, reqData: Recordable = {}) {
async genRequest<T>(action: string, reqData: Recordable = {}) {
const json: Recordable = {
user_id: this.config.app_key,
format: 'json',
Expand Down

0 comments on commit ae43369

Please sign in to comment.