Commit 98df262b by Sixong.Zhu

update

parent c610e11e
Showing with 6 additions and 1 deletions
......@@ -502,7 +502,10 @@
if (dto.MessageTypeController.isChargeMessage(this.data.type)) {
return this.openMessage({
type: MessageEvent.WithdrawCharge,
model: (this.messageBody.msg as PayMessageBody).paymentId,
model: {
payment: (this.messageBody.msg as PayMessageBody).paymentId,
msg: this.data.id,
},
});
}
ximInstance.withdraw(this.chatId, this.data.id).finally(() => {
......
......@@ -319,6 +319,8 @@ export class MessageTypeController {
private static readonly charges = new Set<MessageType>([
MessageType.Pay,
MessageType.PayV1,
MessageType.Refund,
MessageType.RefundV1,
]);
public static isPayMessage(type: MessageType) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment