Commit d620cf9d authored by zhengdixun's avatar zhengdixun

quxiaojiami

parent 31e7a649
...@@ -34,11 +34,11 @@ class BJDBaseView(View): ...@@ -34,11 +34,11 @@ class BJDBaseView(View):
def dispatch(self, request, *args, **kwargs): def dispatch(self, request, *args, **kwargs):
print(request.POST) print(request.POST)
request.realDate = self.decrypt(request.POST) # request.realDate = self.decrypt(request.POST)
request.realData = request.POST request.realData = request.POST
data = super().dispatch(request, *args, **kwargs) data = super().dispatch(request, *args, **kwargs)
request_id = uuid.uuid4().hex request_id = uuid.uuid4().hex
data = self._encrypt(data, request_id) # data = self._encrypt(data, request_id)
return JsonResponse(data) return JsonResponse(data)
def decrypt(self, data,): def decrypt(self, data,):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment