initstation
This commit is contained in:
@@ -258,6 +258,7 @@ func InitStation(ctx *jxcontext.Context) (err error) {
|
|||||||
updateList []*model.StationInfo
|
updateList []*model.StationInfo
|
||||||
deleteList []*model.StationInfo
|
deleteList []*model.StationInfo
|
||||||
)
|
)
|
||||||
|
api.EjyAPI.SetTimestamp(time.Now().Unix())
|
||||||
if stations, err := dao.GetStationList(db); len(stations) > 0 && err == nil {
|
if stations, err := dao.GetStationList(db); len(stations) > 0 && err == nil {
|
||||||
for _, v := range stations {
|
for _, v := range stations {
|
||||||
stationMap[v.StationID] = v
|
stationMap[v.StationID] = v
|
||||||
|
|||||||
Reference in New Issue
Block a user