Browse Source

update

更新 dockerfile的基础镜像 为安心云私有基础标准镜像
info查询错误 及时退出
dev
lucas 1 month ago
parent
commit
ee75357880
  1. 3
      build/Dockerfile_app
  2. 3
      et_Info/InfoHandler.go

3
build/Dockerfile_app

@ -1,4 +1,5 @@
FROM docker.io/library/alpine:3.20 #FROM docker.io/library/alpine:3.20
FROM registry.ngaiot.com/local/alpine_3.20_cst:5
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
WORKDIR /app/ WORKDIR /app/
RUN apk add --no-cache tzdata RUN apk add --no-cache tzdata

3
et_Info/InfoHandler.go

@ -37,7 +37,8 @@ func (the *InfoHandler) getStationInfo(p *common_models.ProcessData) *common_mod
log.Printf("重获取设备[%s]的 DeviceStationObj", p.DeviceData.DeviceId) log.Printf("重获取设备[%s]的 DeviceStationObj", p.DeviceData.DeviceId)
stationIds, err := the.configHelper.GetDeviceStationIds(p.DeviceData.DeviceId) stationIds, err := the.configHelper.GetDeviceStationIds(p.DeviceData.DeviceId)
if err != nil { if err != nil {
log.Printf("GetDeviceStationIds err =>%s", err.Error()) log.Printf("err !!! GetDeviceStationIds =>%s", err.Error())
return p
} }
p.Stations, err = the.configHelper.GetStations(stationIds...) p.Stations, err = the.configHelper.GetStations(stationIds...)
the.getFormulaInfo(p) the.getFormulaInfo(p)

Loading…
Cancel
Save