|
@@ -899,51 +899,51 @@ export class OpenApiController extends BaseController {
|
|
/**
|
|
/**
|
|
* 创建 Webhook
|
|
* 创建 Webhook
|
|
*/
|
|
*/
|
|
- @Post('/v3/webhooks', { summary: '创建 Webhook' })
|
|
|
|
- async createdWebhooks(@Body(ALL) params: any) {
|
|
|
|
- // Access the request method and path
|
|
|
|
- const method = this.ctx.method;
|
|
|
|
- const path = this.ctx.path;
|
|
|
|
|
|
+ // @Post('/v3/webhooks', { summary: '创建 Webhook' })
|
|
|
|
+ // async createdWebhooks(@Body(ALL) params: any) {
|
|
|
|
+ // // Access the request method and path
|
|
|
|
+ // const method = this.ctx.method;
|
|
|
|
+ // const path = this.ctx.path;
|
|
|
|
|
|
- console.log('Request Method:', method);
|
|
|
|
- console.log('Request Path:', path);
|
|
|
|
|
|
+ // console.log('Request Method:', method);
|
|
|
|
+ // console.log('Request Path:', path);
|
|
|
|
|
|
- // console.log(typeof params)
|
|
|
|
- // return `${method}, ${path}, ${params}`
|
|
|
|
- return await this.easyPayAdapter.request(method, path, params);
|
|
|
|
- }
|
|
|
|
|
|
+ // // console.log(typeof params)
|
|
|
|
+ // // return `${method}, ${path}, ${params}`
|
|
|
|
+ // return await this.easyPayAdapter.request(method, path, params);
|
|
|
|
+ // }
|
|
/**
|
|
/**
|
|
* 查询 Webhook
|
|
* 查询 Webhook
|
|
*/
|
|
*/
|
|
- @Get('/v3/webhooks', { summary: '查询 Webhook' })
|
|
|
|
- async getWebhooks(@Query(ALL) params: any) {
|
|
|
|
- // Access the request method and path
|
|
|
|
- const method = this.ctx.method;
|
|
|
|
- const path = this.ctx.path;
|
|
|
|
|
|
+ // @Get('/v3/webhooks', { summary: '查询 Webhook' })
|
|
|
|
+ // async getWebhooks(@Query(ALL) params: any) {
|
|
|
|
+ // // Access the request method and path
|
|
|
|
+ // const method = this.ctx.method;
|
|
|
|
+ // const path = this.ctx.path;
|
|
|
|
|
|
- console.log('Request Method:', method);
|
|
|
|
- console.log('Request Path:', path);
|
|
|
|
|
|
+ // console.log('Request Method:', method);
|
|
|
|
+ // console.log('Request Path:', path);
|
|
|
|
|
|
- // console.log(typeof params)
|
|
|
|
- // return `${method}, ${path}, ${params}`
|
|
|
|
- return await this.easyPayAdapter.request(method, path, params);
|
|
|
|
- }
|
|
|
|
|
|
+ // // console.log(typeof params)
|
|
|
|
+ // // return `${method}, ${path}, ${params}`
|
|
|
|
+ // return await this.easyPayAdapter.request(method, path, params);
|
|
|
|
+ // }
|
|
/**
|
|
/**
|
|
* 修改 Webhook
|
|
* 修改 Webhook
|
|
*/
|
|
*/
|
|
- @Put('/v3/webhooks/:id', { summary: '修改 Webhook' })
|
|
|
|
- async putWebhooks(@Param('id') id: any, @Body() params: any) {
|
|
|
|
- // Access the request method and path
|
|
|
|
- const method = this.ctx.method;
|
|
|
|
- const path = this.ctx.path;
|
|
|
|
|
|
+ // @Put('/v3/webhooks/:id', { summary: '修改 Webhook' })
|
|
|
|
+ // async putWebhooks(@Param('id') id: any, @Body() params: any) {
|
|
|
|
+ // // Access the request method and path
|
|
|
|
+ // const method = this.ctx.method;
|
|
|
|
+ // const path = this.ctx.path;
|
|
|
|
|
|
- console.log('Request Method:', method);
|
|
|
|
- console.log('Request Path:', path);
|
|
|
|
|
|
+ // console.log('Request Method:', method);
|
|
|
|
+ // console.log('Request Path:', path);
|
|
|
|
|
|
- // console.log(typeof params)
|
|
|
|
- // return `${method}, ${path}, ${params}`
|
|
|
|
- return await this.easyPayAdapter.request(method, path, params);
|
|
|
|
- }
|
|
|
|
|
|
+ // // console.log(typeof params)
|
|
|
|
+ // // return `${method}, ${path}, ${params}`
|
|
|
|
+ // return await this.easyPayAdapter.request(method, path, params);
|
|
|
|
+ // }
|
|
/**
|
|
/**
|
|
* 删除 Webhook
|
|
* 删除 Webhook
|
|
*/
|
|
*/
|