chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
df5182a2e8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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