作者 唐旭辉

bug 修复

... ... @@ -200,6 +200,7 @@ func (controller *BaseController) setUserCompanyId(id int64) {
func (controller *BaseController) GetUserCompany() int64 {
idV := controller.Ctx.Input.GetData("token:company_id")
uid, _ := strconv.ParseInt(fmt.Sprint(idV), 10, 64)
uid, err := strconv.ParseInt(fmt.Sprint(idV), 10, 64)
logs.Error(err)
return uid
}
... ...
... ... @@ -24,7 +24,6 @@ type OrderInfoController struct {
////Prepare 重写 BaseController 的Prepare方法
func (c *OrderInfoController) Prepare() {
c.BaseController.Prepare()
return
if ok := c.ValidJWTToken(); !ok {
return
}
... ...