作者 yangfu

fix: 配置修改

@@ -97,7 +97,7 @@ spec: @@ -97,7 +97,7 @@ spec:
97 - name: HTTP_PORT 97 - name: HTTP_PORT
98 value: "8082" 98 value: "8082"
99 - name: SERVICE_ENV 99 - name: SERVICE_ENV
100 - value: "dev" 100 + value: "test"
101 - name: SUPLUS_ADMIN_BASE_HOST 101 - name: SUPLUS_ADMIN_BASE_HOST
102 value: "http://suplus-admin-base-dev.fjmaimaimai.com" 102 value: "http://suplus-admin-base-dev.fjmaimaimai.com"
103 - name: ALLIED_CREATION_GATEWAY_HOST 103 - name: ALLIED_CREATION_GATEWAY_HOST
@@ -79,8 +79,8 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c @@ -79,8 +79,8 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c
79 } 79 }
80 80
81 //处理设备数据 81 //处理设备数据
82 - switch deviceCollection.DeviceType {  
83 - case domain.DeviceTypeBaoXianJi, domain.DeviceTypeChuanChuanJi, domain.DeviceTypeFengKouJi, domain.DeviceTypeFengXiangJi: 82 + //switch deviceCollection.DeviceType {
  83 + //case domain.DeviceTypeBaoXianJi, domain.DeviceTypeChuanChuanJi, domain.DeviceTypeFengKouJi, domain.DeviceTypeFengXiangJi:
84 if v, ok := deviceCollection.Values["count"]; ok { 84 if v, ok := deviceCollection.Values["count"]; ok {
85 curCount, errCurCount := strconv.Atoi(fmt.Sprintf("%v", v)) 85 curCount, errCurCount := strconv.Atoi(fmt.Sprintf("%v", v))
86 v, ok = lastDeviceCollectionRecord.Values["count"] 86 v, ok = lastDeviceCollectionRecord.Values["count"]
@@ -101,8 +101,8 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c @@ -101,8 +101,8 @@ func (deviceCollectionService *DeviceCollectionService) CreateDeviceCollection(c
101 deviceCollection.Values["count"] = 0 101 deviceCollection.Values["count"] = 0
102 } 102 }
103 } 103 }
104 - break  
105 - } 104 + // break
  105 + //}
106 err = domainService.SendWorkshopDeviceData(deviceCollection) 106 err = domainService.SendWorkshopDeviceData(deviceCollection)
107 if err != nil { 107 if err != nil {
108 log.Logger.Error("车间设备数据加入redis失败:" + err.Error()) 108 log.Logger.Error("车间设备数据加入redis失败:" + err.Error())