作者 唐旭辉

bug 修复

@@ -96,7 +96,7 @@ func (service UsersService) UserLoginBySecretKey(cmd command.LoginBySecretKeyCom @@ -96,7 +96,7 @@ func (service UsersService) UserLoginBySecretKey(cmd command.LoginBySecretKeyCom
96 return nil, lib.ThrowError(lib.BUSINESS_ERROR, "用户被禁用") 96 return nil, lib.ThrowError(lib.BUSINESS_ERROR, "用户被禁用")
97 } 97 }
98 err = transactionContext.CommitTransaction() 98 err = transactionContext.CommitTransaction()
99 - newJwt := lib.NewMyToken(usersData.Id, usersData.Id) 99 + newJwt := lib.NewMyToken(usersData.Id, companyData.Id)
100 newToken, err := newJwt.CreateJWTToken() 100 newToken, err := newJwt.CreateJWTToken()
101 //生成token 101 //生成token
102 returnData := map[string]interface{}{ 102 returnData := map[string]interface{}{