Commit 31e7a649 authored by zhengdixun's avatar zhengdixun

decode

parent e3c6f877
......@@ -34,12 +34,11 @@ class BJDBaseView(View):
def dispatch(self, request, *args, **kwargs):
print(request.POST)
# request.POST = json.loads(request.body.decode('utf8'))
# request.realDate = self.decrypt(request.POST)
request.realDate = self.decrypt(request.POST)
request.realData = request.POST
data = super().dispatch(request, *args, **kwargs)
# request_id = uuid.uuid4().hex
# data = self._encrypt(data, request_id)
request_id = uuid.uuid4().hex
data = self._encrypt(data, request_id)
return JsonResponse(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