修改api-getconfig视图的参数名称
This commit is contained in:
parent
3520699304
commit
adf533c594
@ -7,9 +7,9 @@ from django.views.decorators.http import require_http_methods, require_POST, req
|
|||||||
@require_POST
|
@require_POST
|
||||||
def getconfig(request):
|
def getconfig(request):
|
||||||
try:
|
try:
|
||||||
param = request.POST.get("param")
|
identity = request.POST.get("param")
|
||||||
title = m_api.SysConfig.objects.filter(identity=param).first().param
|
param = m_api.SysConfig.objects.filter(identity=identity).first().param
|
||||||
return HttpResponse(title)
|
return HttpResponse(param)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"报错了:{e}")
|
print(f"报错了:{e}")
|
||||||
return HttpResponse("报错了")
|
return HttpResponse("报错了")
|
||||||
|
Loading…
Reference in New Issue
Block a user