From ee75357880156c874757efcea15cf5a9b7de986d Mon Sep 17 00:00:00 2001 From: lucas Date: Thu, 26 Sep 2024 18:12:55 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=9B=B4=E6=96=B0=20dockerfile?= =?UTF-8?q?=E7=9A=84=E5=9F=BA=E7=A1=80=E9=95=9C=E5=83=8F=20=E4=B8=BA?= =?UTF-8?q?=E5=AE=89=E5=BF=83=E4=BA=91=E7=A7=81=E6=9C=89=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=A0=87=E5=87=86=E9=95=9C=E5=83=8F=20info=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20=E5=8F=8A=E6=97=B6=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/Dockerfile_app | 3 ++- et_Info/InfoHandler.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile_app b/build/Dockerfile_app index 18bb176..0c47cea 100644 --- a/build/Dockerfile_app +++ b/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 WORKDIR /app/ RUN apk add --no-cache tzdata diff --git a/et_Info/InfoHandler.go b/et_Info/InfoHandler.go index 10c6937..91e81f4 100644 --- a/et_Info/InfoHandler.go +++ b/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) stationIds, err := the.configHelper.GetDeviceStationIds(p.DeviceData.DeviceId) 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...) the.getFormulaInfo(p)