|
|
@@ -48,10 +48,8 @@ export class mwze167 extends GetNumberService {
|
|
|
let operatorName: string = null
|
|
|
let carrierName: string = null
|
|
|
let imsi: string = null
|
|
|
- let longImsi: string = null
|
|
|
let mcc: string = null
|
|
|
let mnc: string = null
|
|
|
- let longMnc: string = null
|
|
|
let platform: string = null
|
|
|
try {
|
|
|
if (channelId) {
|
|
|
@@ -89,6 +87,7 @@ export class mwze167 extends GetNumberService {
|
|
|
}
|
|
|
})
|
|
|
const resultData = res.data
|
|
|
+ Logger.log(resultData, 'durian')
|
|
|
if (resultData.code !== 200) {
|
|
|
throw new Error(resultData.msg)
|
|
|
}
|
|
|
@@ -104,14 +103,19 @@ export class mwze167 extends GetNumberService {
|
|
|
}
|
|
|
})
|
|
|
const codeData = codeRes.data
|
|
|
+ Logger.log(codeData, 'durian')
|
|
|
if (codeData.code !== 200) {
|
|
|
throw new Error(codeData.msg)
|
|
|
}
|
|
|
- imsi = codeData.data.slice(0, 5)
|
|
|
- longImsi = codeData.data.slice(0, 6)
|
|
|
mcc = codeData.data.slice(0, 3)
|
|
|
- mnc = codeData.data.slice(3, 5)
|
|
|
- longMnc = codeData.data.slice(3, 6)
|
|
|
+ if (channel.mnc.length>2){
|
|
|
+ imsi = codeData.data.slice(0, 6)
|
|
|
+ mnc = codeData.data.slice(3, 6)
|
|
|
+ }else {
|
|
|
+ imsi = codeData.data.slice(0, 5)
|
|
|
+ mnc = codeData.data.slice(3, 5)
|
|
|
+ }
|
|
|
+
|
|
|
} else if (platform === 'mwze167') {
|
|
|
const res = await axiosInstance.get('getMobile', {
|
|
|
params: {
|