|
@@ -185,8 +185,12 @@ class UserDeviceService:
|
|
|
if p_vo['serial_number']:
|
|
|
u_device_info_qs = UnicomDeviceInfo.objects.filter(serial_no=p_vo['serial_number'])
|
|
|
if u_device_info_qs.exists():
|
|
|
- p_vo['iccid'] = u_device_info_qs.first().iccid
|
|
|
- p_vo['iccidType'] = u_device_info_qs.first().card_type
|
|
|
+ card_type = u_device_info_qs.first().card_type
|
|
|
+ if card_type == 5: # 鼎芯国际
|
|
|
+ p_vo['iccid'] = u_device_info_qs.first().iccid[0:19]
|
|
|
+ else:
|
|
|
+ p_vo['iccid'] = u_device_info_qs.first().iccid
|
|
|
+ p_vo['iccidType'] = card_type
|
|
|
|
|
|
@classmethod
|
|
|
def get_uid_info(cls, p_vo, uid):
|