|
@@ -199,7 +199,7 @@ class serveManagement(View):
|
|
|
0, {'list': vod_bucket_list, 'total': total})
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def addOrEditVodBucket(self, userID, request_dict, response):
|
|
|
# 添加/编辑存储桶
|
|
@@ -245,7 +245,7 @@ class serveManagement(View):
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def deleteVodBucket(self, userID, request_dict, response):
|
|
|
# 删除存储桶
|
|
@@ -258,7 +258,7 @@ class serveManagement(View):
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def getStoreMealList(self, userID, request_dict, response):
|
|
|
# 获取云存套餐信息数据
|
|
@@ -336,7 +336,7 @@ class serveManagement(View):
|
|
|
0, {'list': store_meal_list, 'total': total})
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def addOrEditStoreMeal(self, userID, request_dict, response):
|
|
|
# 添加/编辑套餐
|
|
@@ -392,7 +392,7 @@ class serveManagement(View):
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def deleteStoreMeal(self, userID, request_dict, response):
|
|
|
# 删除套餐信息
|
|
@@ -405,7 +405,7 @@ class serveManagement(View):
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def getStoreMealLanguage(self, userID, request_dict, response):
|
|
|
# 获取套餐语言
|
|
@@ -451,7 +451,7 @@ class serveManagement(View):
|
|
|
0, {'list': store_meal_lang_list, 'total': total})
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def addOrEditStoreMealLanguage(self, userID, request_dict, response):
|
|
|
# 添加/编辑套餐语言
|
|
@@ -503,7 +503,7 @@ class serveManagement(View):
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def deleteStoreMealLanguage(self, userID, request_dict, response):
|
|
|
# 删除套餐语言
|
|
@@ -522,7 +522,7 @@ class serveManagement(View):
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def getCdkList(self, userID, request_dict, response):
|
|
|
# 获取激活码列表
|
|
@@ -577,7 +577,7 @@ class serveManagement(View):
|
|
|
0, {'list': list(cdk_qs), 'total': count})
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def editExpress(self, request_dict, response):
|
|
|
order_id = request_dict.get('orderID', None)
|
|
@@ -588,7 +588,7 @@ class serveManagement(View):
|
|
|
CDKcontextModel.objects.filter(order=order_id).update(express_id=express_id)
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def getVodStoreMeal(self, response):
|
|
|
try:
|
|
@@ -601,7 +601,7 @@ class serveManagement(View):
|
|
|
store_meal_list.append({'id': item['id'], 'title': item['lang__title'] + '--' + item['lang__content']})
|
|
|
return response.json(0, store_meal_list)
|
|
|
except Exception as e:
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def createCdk(self, request_dict, response):
|
|
|
cdk_num = request_dict.get("cdknum", None)
|
|
@@ -643,7 +643,7 @@ class serveManagement(View):
|
|
|
CDKcontextModel.objects.get(id=cdk_id).delete()
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def downloadCDK(self, request_dict, response):
|
|
|
region = request_dict.get('region', None)
|
|
@@ -790,7 +790,7 @@ class serveManagement(View):
|
|
|
0, {'list': order_list, 'total': count})
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def vodOrderReconcile(self, request, request_dict, response):
|
|
|
|
|
@@ -910,7 +910,7 @@ class serveManagement(View):
|
|
|
return res
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def deleteDeviceOrder(self, userID, request_dict, response):
|
|
|
orderID = request_dict.get('orderID', None)
|
|
@@ -955,7 +955,7 @@ class serveManagement(View):
|
|
|
0, {'list': list(ubqs), 'total': count})
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def deleteDevicePackage(self, userID, request_dict, response):
|
|
|
orderID = request_dict.get('orderID', None)
|
|
@@ -1151,7 +1151,7 @@ class serveManagement(View):
|
|
|
0, {'list': list_data, 'total': count})
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def exportCloudUserList(self, request_dict, response):
|
|
|
# UID_Bucket表查询数据
|
|
@@ -1366,7 +1366,7 @@ class serveManagement(View):
|
|
|
return response
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def getCloudDataList(self, request_dict, response):
|
|
|
year = request_dict.get('year', None)
|
|
@@ -1423,7 +1423,7 @@ class serveManagement(View):
|
|
|
return response.json(0, {'list': list_data})
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
@classmethod
|
|
|
def deviceAttritionAlert(cls, request_dict, response):
|
|
@@ -1619,7 +1619,7 @@ class serveManagement(View):
|
|
|
return response.json(173)
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- return response.json(500, repr(e))
|
|
|
+ return response.json(500, 'error_ine:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
def cloudDataExport(self, request_dict, response):
|
|
|
"""
|