林轩 пре 1 година
родитељ
комит
3259cbe82e
2 измењених фајлова са 19 додато и 19 уклоњено
  1. 2 2
      apps/Equipment/views.py
  2. 17 17
      test.json

+ 2 - 2
apps/Equipment/views.py

@@ -66,8 +66,8 @@ class QxzDeviceListView(APIView):
 
 
 class QxzDeviceDetailView(APIView):
-    # authentication_classes = [APIAuthentication]
-    # permission_classes = [QXZDeviceDetailPermission]
+    authentication_classes = [APIAuthentication]
+    permission_classes = [QXZDeviceDetailPermission]
     throttle_classes = [DeviceDetailRateThrottle]
     
     def get(self, request, *args, **kwargs):

+ 17 - 17
test.json

@@ -1,36 +1,36 @@
 {
 	"mysql": {
-		"host": "114.55.0.7",
-		"port": 3306,
-		"user": "root",
+		"host": "8.136.98.49",
+		"port": 61882,
+		"user": "api",
 		"pwd": "yfkj@6020"
 	},
 	"redis": {
-		"host": "114.55.0.7",
+		"host": "8.136.98.49",
 		"port": "61881",
 		"password": "yf6021",
-        "url": "redis://:yf6021@114.55.0.7:61881/12"
+        "url": "redis://:yf6021@127.0.0.1:61881/12"
 	},
 	"bigdatamysql": {
-		"host": "114.55.0.7",
-		"port": 3306,
+		"host": "8.136.98.49",
+		"port": 61882,
 		"user": "root",
 		"pwd": "yfkj@6020"
 	},
 	"bigdatamongo": {
-		"host": "114.55.0.7",
-		"port": 27017,
+		"host": "8.136.98.49",
+		"port": 57017,
 		"user": "root",
 		"pwd": "yfkj@6020"
 	},
 	"image_url": {
-		"image": "http://bigdata-all.oss-accelerate.aliyuncs.com/Basics/cbd",
-		"discern": "http://bigdata-all.oss-accelerate.aliyuncs.com/Result/cbd",
-		"discernB": "http://bigdata-all.oss-accelerate.aliyuncs.com/ResultB/cbd",
-		"image_forward": "http://114.115.147.140:8004/Basics/cbd",
-		"result_image_forward": "http://114.115.147.140:8004/Result/cbd",
-		"bzy_img_forward": "http://114.115.147.140/bzy_photo",
-		"xct_img_forward": "http://114.115.147.140:8004/Basics/xct",
-    	"xct_img_result_forward": "http://8.136.98.49:8004/Result/xct"
+		"image": "https://bigdata-image.oss-cn-hangzhou.aliyuncs.com/Basics/cbd",
+		"discern" : "https://bigdata-image.oss-cn-hangzhou.aliyuncs.com/Result/cbd",
+		"discernB" : "https://bigdata-image.oss-cn-hangzhou.aliyuncs.com/ResultB/cbd",
+		"image_forward": "http://8.136.98.49:8003/Basics/cbd",
+		"result_image_forward": "http://8.136.98.49:8003/Result/cbd",
+		"bzy_img_forward": "http://8.136.98.49:8003/bzy_photo",
+		"xct_img_forward": "http://8.136.98.49:8003/Basics/xct",
+    	"xct_img_result_forward": "http://8.136.98.49:8003/Result/xct"
 	}
 }