text: from django.shortcuts import render,HttpResponse
  from pcdn.models import Pcdn
  import json
  
  def uploadHandler(request):
      if request.method == "POST":
          payload = json.loads(request.body.decode())
          print(payload)
          #添加记录
          record = Pcdn()
          #record.nodeName =
          record.hostName = payload["hostName"]
          record.accountAgo =payload["accAgo"]
          record.accountlater = payload["accLater"]
          record.accountLog = payload["accLog"]
          record.save()
  
          return HttpResponse("okk")
      else:
          return HttpResponse("test-ok")