chenjunkai 5 lat temu
rodzic
commit
f2639742cc
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      controller/index.py

+ 2 - 0
controller/index.py

@@ -16,6 +16,7 @@ import time
 import requests
 from django.views.generic import TemplateView
 from django.shortcuts import render_to_response
+from django.http import JsonResponse
 from object.ResObject import ResObject
 import subprocess
 from gevent.pool import Pool
@@ -117,6 +118,7 @@ class oa2TokenView(TemplateView):
             "expires_in": 3600,
             "refresh_token": refresh_token
         }
+        return JsonResponse(res_json)
         response = ResObject()
         return response.json(0, res=res_json)