|
@@ -118,7 +118,7 @@ export class PayOpenController extends BaseController {
|
|
|
@CoolTag(TagTypes.IGNORE_TOKEN)
|
|
|
@Post('/notifyTest', { summary: '回调通知' })
|
|
|
public async notifyTest(@Body(ALL) payload: any) {
|
|
|
- this.logger.error('收到测试回调数据', JSON.stringify(payload));
|
|
|
+ this.logger.warn('收到测试回调数据', JSON.stringify(payload));
|
|
|
console.log('收到测试回调数据', payload);
|
|
|
this.ctx.body = 'success';
|
|
|
}
|
|
@@ -127,7 +127,7 @@ export class PayOpenController extends BaseController {
|
|
|
@Post('/SunCard/notifyOrder', { summary: '交易订单回调通知' })
|
|
|
public async notifySunCardOrderGet(@Body(ALL) payload: any) {
|
|
|
const headers = this.ctx.headers;
|
|
|
- this.logger.error('SunCard收到交易订单回调数据', JSON.stringify(payload), headers);
|
|
|
+ this.logger.warn('SunCard收到交易订单回调数据', JSON.stringify(payload), headers);
|
|
|
await this.orderService.handleNotify('SUN_CARD', payload, headers);
|
|
|
this.ctx.body = {
|
|
|
"is_success": "true",
|
|
@@ -139,7 +139,7 @@ export class PayOpenController extends BaseController {
|
|
|
@Post('/hambit/bra/notifyOrder', { summary: '巴西交易订单回调通知' })
|
|
|
public async hambitBraNotifyOrderGet(@Body(ALL) payload: any) {
|
|
|
const headers = this.ctx.headers;
|
|
|
- this.logger.error('hambit收到交易订单回调数据', JSON.stringify(payload), headers);
|
|
|
+ this.logger.warn('hambit收到交易订单回调数据', JSON.stringify(payload), headers);
|
|
|
await this.orderService.handleNotify('HB_BRA', payload, headers);
|
|
|
this.ctx.body = {
|
|
|
"code": "200",
|
|
@@ -151,7 +151,7 @@ export class PayOpenController extends BaseController {
|
|
|
@Post('/hambit/bra/notifyWithdraw', { summary: '巴西交易订单回调通知' })
|
|
|
public async hambitBraNotifyWithdraw(@Body(ALL) payload: any) {
|
|
|
const headers = this.ctx.headers;
|
|
|
- this.logger.error('hambit收到代付订单回调数据', JSON.stringify(payload), headers);
|
|
|
+ this.logger.warn('hambit收到代付订单回调数据', JSON.stringify(payload), headers);
|
|
|
await this.withdrawService.handleWithdrawNotify('HB_BRA', payload, headers);
|
|
|
this.ctx.body = {
|
|
|
"code": "200",
|
|
@@ -163,7 +163,7 @@ export class PayOpenController extends BaseController {
|
|
|
@Post('/hambit/inr/notifyOrder', { summary: '印度交易订单回调通知' })
|
|
|
public async hambitInrNotifyOrderGet(@Body(ALL) payload: any) {
|
|
|
const headers = this.ctx.headers;
|
|
|
- this.logger.error('hambit收到交易订单回调数据', JSON.stringify(payload), headers);
|
|
|
+ this.logger.warn('hambit收到交易订单回调数据', JSON.stringify(payload), headers);
|
|
|
await this.orderService.handleNotify('HB_INR', payload, headers);
|
|
|
this.ctx.body = {
|
|
|
"code": "200",
|
|
@@ -175,7 +175,7 @@ export class PayOpenController extends BaseController {
|
|
|
@Post('/hambit/inr/notifyWithdraw', { summary: '巴西交易订单回调通知' })
|
|
|
public async hambitInrNotifyWithdraw(@Body(ALL) payload: any) {
|
|
|
const headers = this.ctx.headers;
|
|
|
- this.logger.error('hambit收到代付订单回调数据', JSON.stringify(payload), headers);
|
|
|
+ this.logger.warn('hambit收到代付订单回调数据', JSON.stringify(payload), headers);
|
|
|
await this.withdrawService.handleWithdrawNotify('HB_INR', payload, headers);
|
|
|
this.ctx.body = {
|
|
|
"code": "200",
|
|
@@ -183,6 +183,15 @@ export class PayOpenController extends BaseController {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
+ @CoolTag(TagTypes.IGNORE_TOKEN)
|
|
|
+ @Post('/ach/notifyOrder', { summary: 'ACH订单回调通知' })
|
|
|
+ public async achNotifyOrderGet(@Body(ALL) payload: any) {
|
|
|
+ const headers = this.ctx.headers;
|
|
|
+ this.logger.warn('ach收到交易订单回调数据', JSON.stringify(payload), headers);
|
|
|
+ await this.orderService.handleNotify('ACH', payload, headers);
|
|
|
+ this.ctx.body = 'success';
|
|
|
+ }
|
|
|
+
|
|
|
@CoolTag(TagTypes.IGNORE_TOKEN)
|
|
|
@Post('/kyc/level', { summary: 'kyc level 查询' })
|
|
|
public async kycLevel(@Body(ALL) payload: any) {
|