浏览代码

优化4G上报ICCID

zhangdongming 1 年之前
父节点
当前提交
5ed49423fe
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Controller/UnicomCombo/UnicomComboController.py

+ 3 - 0
Controller/UnicomCombo/UnicomComboController.py

@@ -494,6 +494,9 @@ class UnicomComboView(View):
             dx_iot = EIoTClubObject()
             dx_iot = EIoTClubObject()
             params = {'iccid': iccid}
             params = {'iccid': iccid}
             result = dx_iot.get_cards_info('v3', **params)
             result = dx_iot.get_cards_info('v3', **params)
+            if result['code'] == '900911' and len(iccid) == 20:
+                params = {'iccid': iccid[0:19]}
+                result = dx_iot.get_cards_info('v3', **params)
             assert result['code'] == '200'
             assert result['code'] == '200'
             return True
             return True
         except Exception as e:
         except Exception as e: