|
@@ -923,8 +923,8 @@ class SerialNumberView(View):
|
|
|
if not unicom_qs.exists():
|
|
|
return False
|
|
|
# 针对库存设备,此步骤激活测试流量
|
|
|
+ unicom_qs = unicom_qs[0]
|
|
|
UnicomComboView().activate_test_flow_package(serial_no)
|
|
|
- unicom_qs = unicom_qs.first()
|
|
|
redis.CONN.setnx(key, str(unicom_qs['iccid']))
|
|
|
redis.CONN.expire(key, 3600 * 24) # 已调用过激活两个小时内不可调用
|
|
|
ip = CommonService.get_ip_address(request)
|