From ef4003ddd514c88af0684c3702c6e5cfffa5f90b Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 11 八月 2020 17:00:19 +0800
Subject: [PATCH] fix isMime and push by alias add limit 200 by unipush api

---
 service/carService.go |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/service/carService.go b/service/carService.go
index 629b43b..964c706 100644
--- a/service/carService.go
+++ b/service/carService.go
@@ -179,21 +179,22 @@
 			return nil
 		}
 		for _,s := range spaceList {
-			isMine := false
-			if _,exist := myPlateNosMap[s.PlateNos]; exist {
-				isMine = true
-			}
+
 			pi := models.PosInfo {
 				SpaceNo: s.SpaceNo,
 				PosNo: "",
 				State: s.State,
-				IsMine: isMine,
 			}
 			if s.PlateNo != "" {
 				pi.PlateNo = s.PlateNo
 			} else if s.PlateNos != "" {
 				pi.PlateNo = s.PlateNos
 			}
+			isMine := false
+			if _,exist := myPlateNosMap[pi.PlateNo]; exist {
+				isMine = true
+			}
+			pi.IsMine = isMine
 			if v,ok := models.SpaceNo2Pos[s.SpaceNo];ok {
 				pi.PosNo = v
 			}

--
Gitblit v1.8.0