liuxiaolong
2020-07-09 844bd2c00b417982ba504d0e2fef8a605ad8c808
add ret msg and fix plateNos is nil
2个文件已修改
4 ■■■■ 已修改文件
controllers/restriction.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/userService.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/restriction.go
@@ -32,7 +32,7 @@
    } else {
        resp.Success= false
        resp.Status= http.StatusBadRequest
        resp.Data= nil
        resp.Data= "数据请求失败,请稍后重试"
    }
    c.Data["json"] = resp
    c.ServeJSON()
service/userService.go
@@ -39,7 +39,7 @@
            }
        } else { //用户已存在
            var userCar models.UserCar
            var plateNos []string
            var plateNos = make([]string, 0)
            all, e := userCar.GetByUserId(tmpUser.Id)
            if e == nil && all != nil {
                for _,up := range all {