diff --git a/es/components/wechatMaterialLibrary/index.js b/es/components/wechatMaterialLibrary/index.js index ad9368a33..559a22d0e 100644 --- a/es/components/wechatMaterialLibrary/index.js +++ b/es/components/wechatMaterialLibrary/index.js @@ -103,7 +103,6 @@ export default OakComponent({ const { applicationId } = this.props; const { type } = this.props; const result = await this.features.wechatMenu.createMaterial({ - appType: 'wechatPublic', applicationId: applicationId, type: type, file: media, diff --git a/es/features/wechatMenu.d.ts b/es/features/wechatMenu.d.ts index 09b504c1f..644a41abf 100644 --- a/es/features/wechatMenu.d.ts +++ b/es/features/wechatMenu.d.ts @@ -45,7 +45,6 @@ export declare class WechatMenu)["getArticle"]>>; createMaterial(params: { - appType: string; applicationId: string; type: MediaType; file: File; diff --git a/lib/components/wechatMaterialLibrary/index.js b/lib/components/wechatMaterialLibrary/index.js index d1746ee2b..43abdae1a 100644 --- a/lib/components/wechatMaterialLibrary/index.js +++ b/lib/components/wechatMaterialLibrary/index.js @@ -105,7 +105,6 @@ exports.default = OakComponent({ const { applicationId } = this.props; const { type } = this.props; const result = await this.features.wechatMenu.createMaterial({ - appType: 'wechatPublic', applicationId: applicationId, type: type, file: media, diff --git a/lib/features/wechatMenu.d.ts b/lib/features/wechatMenu.d.ts index 09b504c1f..644a41abf 100644 --- a/lib/features/wechatMenu.d.ts +++ b/lib/features/wechatMenu.d.ts @@ -45,7 +45,6 @@ export declare class WechatMenu)["getArticle"]>>; createMaterial(params: { - appType: string; applicationId: string; type: MediaType; file: File; diff --git a/src/components/wechatMaterialLibrary/index.ts b/src/components/wechatMaterialLibrary/index.ts index e93e2988e..30642e442 100644 --- a/src/components/wechatMaterialLibrary/index.ts +++ b/src/components/wechatMaterialLibrary/index.ts @@ -121,7 +121,6 @@ export default OakComponent({ const { applicationId } = this.props; const { type } = this.props; const result = await this.features.wechatMenu.createMaterial({ - appType: 'wechatPublic', applicationId: applicationId!, type: type as 'image' | 'voice' | 'video', file: media, diff --git a/src/features/wechatMenu.ts b/src/features/wechatMenu.ts index 68ce6dab1..7de5d655d 100644 --- a/src/features/wechatMenu.ts +++ b/src/features/wechatMenu.ts @@ -91,7 +91,6 @@ export class WechatMenu< } async createMaterial(params: { - appType: string; applicationId: string; type: MediaType; file: File;