2024-08-18 20:51:27 +08:00
|
|
|
from django.shortcuts import HttpResponse
|
|
|
|
from apps.api import models as m_api
|
|
|
|
from django.views.decorators.http import require_http_methods, require_POST, require_GET
|
|
|
|
|
|
|
|
|
|
|
|
# Create your views here.
|
|
|
|
@require_POST
|
|
|
|
def getconfig(request):
|
|
|
|
try:
|
2024-09-06 23:24:12 +08:00
|
|
|
identity = request.POST.get("param")
|
|
|
|
param = m_api.SysConfig.objects.filter(identity=identity).first().param
|
|
|
|
return HttpResponse(param)
|
2024-08-18 20:51:27 +08:00
|
|
|
except Exception as e:
|
|
|
|
print(f"报错了:{e}")
|
|
|
|
return HttpResponse("报错了")
|