|
@@ -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)
|
|
|
|