yf_yzl %!s(int64=2) %!d(string=hai) anos
pai
achega
cd49f837fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/Weather/views.py

+ 1 - 1
apps/Weather/views.py

@@ -98,7 +98,7 @@ class GetWeather(APIView):
             return Response({"msg": "请联系管理员", "code": "50001"})
         
 
-def HistoryAPIView(APIView):
+class HistoryAPIView(APIView):
 
     def post(self, request):
         data = request.data