|
@@ -200,6 +200,7 @@ func (controller *BaseController) setUserCompanyId(id int64) { |
|
@@ -200,6 +200,7 @@ func (controller *BaseController) setUserCompanyId(id int64) { |
200
|
|
200
|
|
201
|
func (controller *BaseController) GetUserCompany() int64 {
|
201
|
func (controller *BaseController) GetUserCompany() int64 {
|
202
|
idV := controller.Ctx.Input.GetData("token:company_id")
|
202
|
idV := controller.Ctx.Input.GetData("token:company_id")
|
203
|
- uid, _ := strconv.ParseInt(fmt.Sprint(idV), 10, 64)
|
203
|
+ uid, err := strconv.ParseInt(fmt.Sprint(idV), 10, 64)
|
|
|
204
|
+ logs.Error(err)
|
204
|
return uid
|
205
|
return uid
|
205
|
} |
206
|
} |