Browse Source

优化欧洲鼎芯卡上报

zhangdongming 1 year ago
parent
commit
6775ca3c1e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Controller/UnicomCombo/UnicomComboController.py

+ 3 - 0
Controller/UnicomCombo/UnicomComboController.py

@@ -494,6 +494,9 @@ class UnicomComboView(View):
             dx_iot = EIoTClubObject()
             params = {'iccid': iccid}
             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'
             return True
         except Exception as e: