Browse Source

feature:测试沙盒模式支付宝

chenjunkai 6 years ago
parent
commit
0df02bdddb
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Controller/Test.py

+ 5 - 1
Controller/Test.py

@@ -55,7 +55,11 @@ class Test(View):
         return HttpResponseRedirect("https://openapi.alipay.com/gateway.do?" + order_string)
 
     def post(self, request, *args, **kwargs):
-        data = dict(request.POST)
+        response = ResponseObject()
+
+        data = request.POST.dict()
+        print(data)
+        return response.json(0,data)
         response = ResponseObject()
         signature = data["sign"]
         data.pop('sign')