|
@@ -118,16 +118,16 @@ class UploadUIDFileView(View):
|
|
}
|
|
}
|
|
MacModel.objects.filter().update(**data)
|
|
MacModel.objects.filter().update(**data)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
- # print('--------------------------error 5000')
|
|
|
|
- # print(repr(e))
|
|
|
|
|
|
+ print('--------------------------error 5000')
|
|
|
|
+ print(repr(e))
|
|
if savePoint:
|
|
if savePoint:
|
|
transaction.rollback(savePoint)
|
|
transaction.rollback(savePoint)
|
|
return response.json(174, str(e))
|
|
return response.json(174, str(e))
|
|
else:
|
|
else:
|
|
savePoint = None
|
|
savePoint = None
|
|
except Exception as e:
|
|
except Exception as e:
|
|
- # print('--------------------------error 5001')
|
|
|
|
- # print(repr(e))
|
|
|
|
|
|
+ print('--------------------------error 5001')
|
|
|
|
+ print(repr(e))
|
|
return response.json(174, str(e))
|
|
return response.json(174, str(e))
|
|
count += 1
|
|
count += 1
|
|
tmpMac = CommonService.updateMac(mac['value'])
|
|
tmpMac = CommonService.updateMac(mac['value'])
|
|
@@ -145,8 +145,8 @@ class UploadUIDFileView(View):
|
|
UIDModel.objects.bulk_create(bulk)
|
|
UIDModel.objects.bulk_create(bulk)
|
|
bulk.clear()
|
|
bulk.clear()
|
|
except Exception as e:
|
|
except Exception as e:
|
|
- # print('--------------------------error')
|
|
|
|
- # print(repr(e))
|
|
|
|
|
|
+ print('--------------------------error')
|
|
|
|
+ print(repr(e))
|
|
if savePoint:
|
|
if savePoint:
|
|
transaction.rollback(savePoint)
|
|
transaction.rollback(savePoint)
|
|
return response.json(174)
|
|
return response.json(174)
|
|
@@ -159,8 +159,8 @@ class UploadUIDFileView(View):
|
|
}
|
|
}
|
|
MacModel.objects.filter().update(**data)
|
|
MacModel.objects.filter().update(**data)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
- # print('--------------------------error 1111')
|
|
|
|
- # print(repr(e))
|
|
|
|
|
|
+ print('--------------------------error 1111')
|
|
|
|
+ print(repr(e))
|
|
return response.json(174)
|
|
return response.json(174)
|
|
|
|
|
|
# print('重复:')
|
|
# print('重复:')
|