|
@@ -67,7 +67,11 @@ class NotificationView(View):
|
|
region = request_dict.get('region', None)
|
|
region = request_dict.get('region', None)
|
|
if not region:
|
|
if not region:
|
|
return JsonResponse(status=200, data={'code': 404, 'msg': 'region is not exist'})
|
|
return JsonResponse(status=200, data={'code': 404, 'msg': 'region is not exist'})
|
|
- region = int(region)
|
|
|
|
|
|
+ try:
|
|
|
|
+ region = int(region)
|
|
|
|
+ except Exception as e:
|
|
|
|
+ return JsonResponse(status=200, data={'code': 404, 'msg': 'region is not exist'})
|
|
|
|
+
|
|
# print("aaa")
|
|
# print("aaa")
|
|
# return JsonResponse(0,safe=False)
|
|
# return JsonResponse(0,safe=False)
|
|
if not all([channel, n_time]):
|
|
if not all([channel, n_time]):
|