chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
9779960ea0
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Controller/Test.py

+ 3 - 1
Controller/Test.py

@@ -50,7 +50,9 @@ class Test(View):
         data = json.dumps(json_data).encode('utf-8')
         headers = {'Content-Type': 'application/json', 'Authorization': 'key=%s' % serverKey}
         req = requests.post(url, data, headers=headers)
-        return self.jgPush(request)
+        response = ResponseObject()
+
+        return response.json(0)
 
     def jgPush(self, request):
         response = ResponseObject()