fix:(cadastro) ajusta bug de cadastro cliente da regiao MG
This commit is contained in:
parent
da3754068b
commit
21a5b81132
1 changed files with 7 additions and 1 deletions
|
|
@ -104,7 +104,13 @@ func (h *Handler) Register(c *gin.Context) {
|
||||||
empresaIDPtr = &req.EmpresaID
|
empresaIDPtr = &req.EmpresaID
|
||||||
}
|
}
|
||||||
|
|
||||||
regiao := c.GetString("regiao")
|
regiao := req.Regiao
|
||||||
|
if regiao == "" {
|
||||||
|
regiao = req.Estado
|
||||||
|
}
|
||||||
|
if regiao == "" {
|
||||||
|
regiao = c.GetString("regiao")
|
||||||
|
}
|
||||||
if regiao == "" {
|
if regiao == "" {
|
||||||
regiao = c.GetHeader("x-regiao")
|
regiao = c.GetHeader("x-regiao")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue