liuxiaolong
2020-08-07 aa5fbd5dc6b79d7a0801ab5ee045dfa6ab77b2f8
use hik old server
2个文件已修改
25 ■■■■■ 已修改文件
conf/app.conf 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/carService.go 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
conf/app.conf
@@ -17,4 +17,6 @@
pushPackageName = uni.UNIEDF0B5C
pushBaseUrl = https://restapi.getui.com/v2/
dbUrl = conf/app.db
hikUrl = https://111.205.161.131:1443
hikUrl = https://111.205.161.131:443
hikAppKey = 26577698
hikAppSecret = ZHhxujl06e0e5jsJLaiB
service/carService.go
@@ -16,8 +16,8 @@
func NewCarService() *CarService {
    return &CarService{
        hikUtil: &reqUtil.HikHttpUtil{
            AppKey: hikAppKey,
            AppSecret: hikAppSecret,
            AppKey: beego.AppConfig.String("hikAppKey"),
            AppSecret: beego.AppConfig.String("hikAppSecret"),
            ReqHost: beego.AppConfig.String("hikUrl"),
        },
    }
@@ -54,11 +54,6 @@
    UpdateTime                 string             `json:"updateTime"`
}
var (
    hikAppKey = "27107808"
    hikAppSecret = "BEQiCoBTYcJX2d4KzbVK"
)
//获取海康停车库列表
func (sv *CarService) getHikParkList() []ParkInfo {
@@ -94,12 +89,12 @@
    ParkSysCode             string             `json:"parkSyscode"`        //停车库唯一标识码
    ParkName                 string             `json:"parkName"`           //停车库名称
    ParentParkSyscode         string             `json:"parentParkSyscode"`  //父停车库唯一标识
    TotalPlace                 int             `json:"totalPlace"`        //停车库车位总数
    TotalPermPlace             int             `json:"totalPermPlace"`    //停车库固定车位总数
    TotalReservePlace         int             `json:"totalReservePlace"` //停车位预约车位总数
    LeftPlace                 int             `json:"leftPlace"`     //停车库车位剩余数
    LeftPermPlace             int             `json:"leftPermPlace"` //停车库固定车位剩余数
    LeftReservePlace         int             `json:"leftReservePlace"` //停车库预约车位剩余数
    TotalPlace                 int             `json:"totalPlace"`         //停车库车位总数
    TotalPermPlace             int             `json:"totalPermPlace"`     //停车库固定车位总数
    TotalReservePlace         int             `json:"totalReservePlace"`  //停车位预约车位总数
    LeftPlace                 int             `json:"leftPlace"`             //停车库车位剩余数
    LeftPermPlace             int             `json:"leftPermPlace"`      //停车库固定车位剩余数
    LeftReservePlace         int             `json:"leftReservePlace"`   //停车库预约车位剩余数
}
func (sv *CarService) getRemainSpaceNum(parkIndexCode string) []RemainSpaceResult {