service/userService.go
@@ -46,10 +46,18 @@ IsDelete: false, } if _, e := u.Insert();e ==nil { var plateNos = make([]string, 0) hikVehicles := carSv.GetVehicleListByPerson(u.Id) if hikVehicles != nil { for _,up := range hikVehicles { plateNos = append(plateNos, up.PlateNo) } } return true, &vo.UserInfo{ UserId: u.Id, PhoneNum: phoneNum, PlateNos: []string{}, PlateNos: plateNos, }, nil } else { fmt.Println("u.Insert err:", e)