|
@@ -1310,7 +1310,8 @@ export class TaskService implements OnModuleInit {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async getCost(task: Task, user: Users) {
|
|
async getCost(task: Task, user: Users) {
|
|
|
- const number: number = await this.phoneListService.findCountByListId(task.listId)
|
|
|
|
|
|
|
+ // const number: number = await this.phoneListService.findCountByListId(task.listId)
|
|
|
|
|
+ const number = task.total
|
|
|
// 费用 = 费率*需要发送量
|
|
// 费用 = 费率*需要发送量
|
|
|
// const rate = new Decimal(String(user.rate))
|
|
// const rate = new Decimal(String(user.rate))
|
|
|
// const num = new Decimal(String(number))
|
|
// const num = new Decimal(String(number))
|