|
@@ -312,9 +312,6 @@ class UnicomComboView(View):
|
|
|
# 待完善代码 根据uid与用户id验证系统设备
|
|
|
unicom_device_qs = UnicomDeviceInfo.objects.filter(serial_no=serial_no)
|
|
|
if unicom_device_qs.exists():
|
|
|
- if sim == 0:
|
|
|
- unicom_device_qs.update(main_card=sim, updated_time=n_time)
|
|
|
- return response.json(0, '切卡修改{}成功'.format(serial_no))
|
|
|
if unicom_device_qs.first().status == 1:
|
|
|
key = 'ASJ:UNICOM:RESET:{}'.format(serial_no)
|
|
|
reset_cache = redis.get_data(key)
|
|
@@ -322,6 +319,7 @@ class UnicomComboView(View):
|
|
|
logger.info('--->三十分后再次访问接口生效赠送流量套餐')
|
|
|
return response.json(0, 'Thirty minutes later to visit again take effect')
|
|
|
cls.user_activate_flow(iccid)
|
|
|
+ unicom_device_qs.update(main_card=sim, updated_time=n_time)
|
|
|
return response.json(0)
|
|
|
if sim == 0:
|
|
|
return response.json(0, '外置卡不保存相关信息{}'.format(serial_no))
|