Browse Source

update 空测点id,提前返回

dev
lucas 1 month ago
parent
commit
bbfbdc2dd0
  1. 3
      configHelper.go

3
configHelper.go

@ -167,6 +167,9 @@ func (the *ConfigHelper) GetDeviceStationIds(deviceId string) ([]int, error) {
k := fmt.Sprintf("%s:%s", redisKey.Device_stationIds, deviceId) k := fmt.Sprintf("%s:%s", redisKey.Device_stationIds, deviceId)
//var deviceMeta common_models.DeviceMeta //var deviceMeta common_models.DeviceMeta
s := the.redisHelper.Get(k) s := the.redisHelper.Get(k)
if s == "" {
return result, errors.New(fmt.Sprintf("redis 中无key=[%s] 缓存", k))
}
err = json.Unmarshal([]byte(s), &result) err = json.Unmarshal([]byte(s), &result)
//err = the.redisHelper.GetObj(k, &result) //err = the.redisHelper.GetObj(k, &result)
} }

Loading…
Cancel
Save