返利:修改返利逻辑

This commit is contained in:
luying
2022-09-17 16:56:41 +08:00
parent 9883e68456
commit 972454db60
2 changed files with 3 additions and 3 deletions

View File

@@ -372,7 +372,7 @@ export async function rebateHistoryOrder(roleId: string, uid: number) {
return { id, count: result }
});
await sendMailByContent(MAIL_TYPE.REBATE, roleId, { goods, params: [`${totalPay}`, `${gold}`] });
await HistoryOrderModel.receive(user.channelId, roleId);
await HistoryOrderModel.receive(historyOrder._id, roleId);
}
}
}