liuxiaolong
2020-07-29 54ad4cfcd5fe5cb949ba491370f129a8f6c3846f
service/carService.go
@@ -7,6 +7,7 @@
   "encoding/json"
   "fmt"
   "github.com/astaxie/beego"
   "strconv"
)
type CarService struct {
   hikUtil *reqUtil.HikHttpUtil
@@ -207,6 +208,18 @@
         }
      //}
   //}
   if len(resultList) == 0 {
      for i:=1;i<89;i++ {
         pi := models.PosInfo {
            SpaceNo: strconv.Itoa(i),
            PosNo: "",
            State: 1,
            PlateNo: "",
            IsMine: false,
         }
         resultList = append(resultList, pi)
      }
   }
   return resultList
}