|
|
@@ -1,4 +1,4 @@
|
|
|
-import { Body, Controller, Get, Logger, Param, Post, Query } from '@nestjs/common'
|
|
|
+import { Body, Controller, Get, HttpCode, Logger, Param, Post, Query } from '@nestjs/common'
|
|
|
import { WeixinService } from './weixin.service'
|
|
|
import { Public } from 'src/auth/public.decorator'
|
|
|
|
|
|
@@ -34,18 +34,6 @@ export class WeixinController {
|
|
|
return await this.weixinService.pay(openid)
|
|
|
}
|
|
|
|
|
|
- @Public()
|
|
|
- @Get('/pay1')
|
|
|
- public async pay1(@Query() { openid }) {
|
|
|
- return await this.weixinService.pay1(openid)
|
|
|
- }
|
|
|
-
|
|
|
- @Public()
|
|
|
- @Get('/pay2')
|
|
|
- public async pay2(@Query() { openid }) {
|
|
|
- return await this.weixinService.pay2(openid)
|
|
|
- }
|
|
|
-
|
|
|
@Public()
|
|
|
@Get('/jsapiSign')
|
|
|
public async jsapiSign(@Query() { url }) {
|
|
|
@@ -54,6 +42,7 @@ export class WeixinController {
|
|
|
|
|
|
@Public()
|
|
|
@Post('/notify')
|
|
|
+ @HttpCode(200)
|
|
|
public async notify(@Body() body) {
|
|
|
Logger.log(body, 'weixin notify')
|
|
|
}
|