fix url and fix testNightPush
| | |
| | | beego.Router(preApi+"/car/crossRecord", &controllers.CarController{}, "*:CrossRecord") |
| | | beego.Router(preApi+"/car/testPush", &controllers.CarController{}, "*:TestPush") |
| | | |
| | | beego.Router(preApi+"/testNightPush", &controllers.CarController{}, "*:TestNightPush") |
| | | beego.Router(preApi+"/car/testNightPush", &controllers.CarController{}, "*:TestNightPush") |
| | | beego.Router(preApi+"/car/pushLog", &controllers.CarController{}, "*:PushLog") |
| | | beego.Router(preApi+"/car/spaceInfo", &controllers.CarController{}, "*:SpaceInfo") |
| | | beego.Router(preApi+"/car/spaceUser", &controllers.CarController{}, "*:SpaceUser") |
| | |
| | | } |
| | | iosPush := map[string]interface{}{ |
| | | "type":"notify", |
| | | "payload": "育英中学停车", |
| | | "aps":map[string]interface{}{ |
| | | "alert":map[string]string{ |
| | | "title": title, |
| | |
| | | if personId,ok := carPersonM[inCnPlateNo];ok { |
| | | |
| | | if v,ex := hikPersonMap[personId]; ex { |
| | | carOwners = append(carOwners, v.PersonName) |
| | | carOwners = append(carOwners, sn.PlateNo+"("+v.PersonName+")") |
| | | } |
| | | } else { //找不到车主,即视为临时车,将车牌作为车主姓名推送 |
| | | carOwners = append(carOwners, sn.PlateNo) |
| | | if sn.PlateNo == "无车牌" { |
| | | carOwners = append(carOwners, sn.PlateNo) |
| | | } else { |
| | | carOwners = append(carOwners, sn.PlateNo+"()") |
| | | } |
| | | } |
| | | } |
| | | } |