wuyi 1 год назад
Родитель
Сommit
136da19990
1 измененных файлов с 16 добавлено и 16 удалено
  1. 16 16
      src/phone-list/phone-list.controller.ts

+ 16 - 16
src/phone-list/phone-list.controller.ts

@@ -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)
     }