| | |
| | | carPersonM[cp.PlateNo] = cp.PersonId |
| | | } |
| | | } |
| | | fmt.Println("carPersonM:", carPersonM) |
| | | delPersonIdM := make(map[string]string) |
| | | spaceNos := csv.FindSpaceNo("") |
| | | for _,sn := range spaceNos { |
| | |
| | | if pId,ok := carPersonM[sn.PlateNo];ok { |
| | | delPersonIdM[pId] = pId |
| | | delete(carPersonM, sn.PlateNo) |
| | | fmt.Println("delete personId:", pId, "plateNo:", sn.PlateNo) |
| | | } |
| | | } |
| | | } |
| | | fmt.Println("len(carPersonM):", len(carPersonM), "len(pushUserM):", len(pushUserM),"delPersonIdM:", delPersonIdM) |
| | | var uc models.UserClient |
| | | for _,personId := range carPersonM { |
| | | if phoneNum,ok := pushUserM[personId]; ok { //此人已注册到系统,并且车不在停车库内 |
| | |
| | | lenAS := len(aliasArr) |
| | | if lenAS == 0 { |
| | | return true, errors.New("aliasArr is empty") |
| | | } else { |
| | | fmt.Println("PushByAlias arr:", aliasArr) |
| | | } |
| | | |
| | | cResult, taskId, ce := createPushMsg(title, msg) |