diff --git a/apps/api/views.py b/apps/api/views.py index 6209299..82694b0 100644 --- a/apps/api/views.py +++ b/apps/api/views.py @@ -7,9 +7,9 @@ from django.views.decorators.http import require_http_methods, require_POST, req @require_POST def getconfig(request): try: - param = request.POST.get("param") - title = m_api.SysConfig.objects.filter(identity=param).first().param - return HttpResponse(title) + identity = request.POST.get("param") + param = m_api.SysConfig.objects.filter(identity=identity).first().param + return HttpResponse(param) except Exception as e: print(f"报错了:{e}") return HttpResponse("报错了")