chenjunkai преди 6 години
родител
ревизия
df5182a2e8
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      Controller/Test.py

+ 2 - 1
Controller/Test.py

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