import { Injectable } from '@nestjs/common' ; import { WeChatAppPayOrderReqParam , WeChatAppPayOrderRes , WeChatBaseCloseOrderReqParam , WeChatBaseCloseOrderRes , WeChatBaseQueryOrderReqParam , WeChatBaseQueryOrderRes } from '../interfaces/order.interface' ; import { WeChatBaseQueryRefundReqParam , WeChatBaseQueryRefundRes } from '../interfaces/refund.interface' ; import { WeChatPayBaseService } from './base.service' ; /**
 * 微信支付-APP支付类
 */ @ Injectable ( ) export class WeChatAppPayService extends WeChatPayBaseService { param params async pay ( params ) { return await this . requestUtil . post < WeChatAppPayOrderRes > ( this . unifiedOrderUrl , params ) ; } param params async queryOrder ( params ) { ( params as any ) . sign_type = 'no_sign_type' ; return await super . queryOrder ( params ) ; } param params async closeOrder ( params ) { ( params as any ) . sign_type = 'no_sign_type' ; return await super . closeOrder ( params ) ; } param params async queryRefund ( params ) { ( params as any ) . sign_type = 'no_sign_type' ; return await super . queryRefund ( params ) ; } }