chenjunkai 6 ani în urmă
părinte
comite
df5182a2e8
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      Controller/Test.py

+ 2 - 1
Controller/Test.py

@@ -57,7 +57,8 @@ class Test(View):
     def post(self, request, *args, **kwargs):
         data = dict(request.POST)
         response = ResponseObject()
-        signature = data.pop("sign")
+        signature = data["sign"]
+        data.pop('sign')
         print(json.dumps(data))
         print(signature)
         # verify