|
@ -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)
|
|
|
} |
|
|
} |
|
|