|
|
@@ -13,7 +13,9 @@ import { encryptData, getFileMd5FromUrl } from '../utils/crypto'
|
|
|
import * as yauzl from 'yauzl'
|
|
|
import { getCountryDataList } from 'countries-list'
|
|
|
|
|
|
-const token =
|
|
|
+const token_sz =
|
|
|
+ 'vLp1Vl/yauWWx2bhaf+e9/VgXzUt5QRIZS4Rj+UuOv4eUpQWkJQC4zVnM3gXaqf5jc6j7lEY2Lagw/QCIf/4/ZTB4MKMfcvUmHRc9ISg4vXgIoC6SB2dyoeJxkOqJ5wQTftzPG2QSLFBSyhV3BHZGOguKSoXSlexmhl8pTqL/Fs='
|
|
|
+const token_xs =
|
|
|
'QYiuiRiEnGWQk/QutmXyo154KeBvRKpg7Eqa/6N6FPgEUlyn5hJV1UmkK2yFRgVMEjQ7ByEAg/2jYFjCleNMaaPUdJfFCr5d9Nndj3b4mx4QM6iVIxxt9B6Phl6ZJ7gVPKtxGE+XTFJepWxaKs9VZSgLI9ORZ/rDD2HZhKQtOm0='
|
|
|
|
|
|
const axiosInstance = axios.create({
|
|
|
@@ -158,7 +160,8 @@ export class PhoneListService {
|
|
|
await this.phoneListRepository.update(id, { type: 0 })
|
|
|
}
|
|
|
|
|
|
- async screenPhoneNumber(file: Express.Multer.File, listId: number): Promise<string[]> {
|
|
|
+ async screenPhoneNumber(file: Express.Multer.File, listId: number, flag: number): Promise<string[]> {
|
|
|
+ const token = flag === 1 ? token_sz : token_xs
|
|
|
let phones = []
|
|
|
let formData = new FormData()
|
|
|
const blob = new Blob([file.buffer], { type: file.mimetype || 'application/octet-stream' })
|