|
@@ -297,10 +297,13 @@ class UnicomComboTaskView(View):
|
|
|
@param push_type:
|
|
|
@return:
|
|
|
"""
|
|
|
- now_time = int(time.time())
|
|
|
- ud_info_qs = UnicomDeviceInfo.objects.filter(iccid=iccid).values('serial_no')
|
|
|
- push_data = {'combo_order_id': str(combo_order_id), 'serial_no': ud_info_qs.first()['serial_no'],
|
|
|
- 'status': 0, 'type': push_type,
|
|
|
- 'updated_time': now_time,
|
|
|
- 'created_time': now_time, 'user_id': ud_info_qs.first()['user_id']}
|
|
|
- UnicomFlowPush.objects.create(push_data)
|
|
|
+ try:
|
|
|
+ now_time = int(time.time())
|
|
|
+ ud_info_qs = UnicomDeviceInfo.objects.filter(iccid=iccid).values('serial_no', 'user_id')
|
|
|
+ push_data = {'combo_order_id': str(combo_order_id), 'serial_no': ud_info_qs.first()['serial_no'],
|
|
|
+ 'status': 0, 'type': push_type,
|
|
|
+ 'updated_time': now_time,
|
|
|
+ 'created_time': now_time, 'user_id': ud_info_qs.first()['user_id']}
|
|
|
+ UnicomFlowPush.objects.create(push_data)
|
|
|
+ except Exception as e:
|
|
|
+ logger.info('-->出错了~,errLine:{}, errMsg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|