initstation

This commit is contained in:
苏尹岚
2020-12-02 15:58:57 +08:00
parent b06343c8bf
commit c8c7dbf38e

View File

@@ -258,6 +258,7 @@ func InitStation(ctx *jxcontext.Context) (err error) {
updateList []*model.StationInfo
deleteList []*model.StationInfo
)
api.EjyAPI.SetTimestamp(time.Now().Unix())
if stations, err := dao.GetStationList(db); len(stations) > 0 && err == nil {
for _, v := range stations {
stationMap[v.StationID] = v