|
@@ -952,6 +952,7 @@ class UnicomManageControllerView(View):
|
|
|
data = {'iccid': iccid, 'operator': 3}
|
|
|
wx_tech = WXTechObject()
|
|
|
result = wx_tech.get_cards_info(**data)
|
|
|
+ LOGGER.info(f'查询电信卡状态结果:{result}')
|
|
|
return status_dict.get(int(result['data']['cardStatusCode']), 'N/A')
|
|
|
|
|
|
elif card_type == 3:
|
|
@@ -973,7 +974,8 @@ class UnicomManageControllerView(View):
|
|
|
else:
|
|
|
return 'N/A'
|
|
|
except Exception as e:
|
|
|
- print(repr(e))
|
|
|
+ LOGGER.error('查询ICCID卡状态异常iccid:{},:errLine:{}, errMsg:{}'
|
|
|
+ .format(iccid, e.__traceback__.tb_lineno, repr(e)))
|
|
|
return 'N/A'
|
|
|
|
|
|
@classmethod
|