瀏覽代碼

feature:测试沙盒模式支付宝

chenjunkai 6 年之前
父節點
當前提交
0df02bdddb
共有 1 個文件被更改,包括 5 次插入1 次删除
  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')