|
|
@@ -95,22 +95,22 @@ export class PhoneListController {
|
|
|
throw new InternalServerErrorException('导入失败,导入条数不能少于100条!')
|
|
|
}
|
|
|
|
|
|
- if (flag === 1) {
|
|
|
- // if (req.user.roles.includes('user')) {
|
|
|
- // if (!(await this.balanceService.changeScreenBalance(req.user.id, phones.length))) {
|
|
|
- // throw new InternalServerErrorException('筛号余额不足请充值!')
|
|
|
- // }
|
|
|
- // }
|
|
|
- try {
|
|
|
- console.log('进入筛号')
|
|
|
- const finalPhones = await this.phoneListService.screenPhoneNumber(file, parseInt(id))
|
|
|
- if (finalPhones && finalPhones.length > 0) {
|
|
|
- phones = finalPhones
|
|
|
- }
|
|
|
- } catch (e) {
|
|
|
- console.log('Screen phone number error:', e)
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (flag === 1) {
|
|
|
+ // // if (req.user.roles.includes('user')) {
|
|
|
+ // // if (!(await this.balanceService.changeScreenBalance(req.user.id, phones.length))) {
|
|
|
+ // // throw new InternalServerErrorException('筛号余额不足请充值!')
|
|
|
+ // // }
|
|
|
+ // // }
|
|
|
+ // try {
|
|
|
+ // console.log('进入筛号')
|
|
|
+ // const finalPhones = await this.phoneListService.screenPhoneNumber(file, parseInt(id))
|
|
|
+ // if (finalPhones && finalPhones.length > 0) {
|
|
|
+ // phones = finalPhones
|
|
|
+ // }
|
|
|
+ // } catch (e) {
|
|
|
+ // console.log('Screen phone number error:', e)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
await this.phoneListService.importList(parseInt(id), phones)
|
|
|
}
|