Commit 1771807e authored by haoyanbin's avatar haoyanbin

1

parent 0bbe94eb
...@@ -325,6 +325,7 @@ func GetClientInfoByToken(token string) (*UserInfo, error) { ...@@ -325,6 +325,7 @@ func GetClientInfoByToken(token string) (*UserInfo, error) {
tokenData := strings.Split(token, "_") tokenData := strings.Split(token, "_")
fmt.Println(tokenData)
if len(tokenData) < 4 { if len(tokenData) < 4 {
return nil, errors.New("用户数据有误") return nil, errors.New("用户数据有误")
} }
...@@ -346,7 +347,7 @@ func GetClientInfoByToken(token string) (*UserInfo, error) { ...@@ -346,7 +347,7 @@ func GetClientInfoByToken(token string) (*UserInfo, error) {
userData.CustomerType = tokenData[2] userData.CustomerType = tokenData[2]
userData.CustomerId = tokenData[3] userData.CustomerId = tokenData[3]
userData.ClientId = userData.Source + "_" + userData.Source + "_" + userData.CustomerType + "_" + userData.CustomerId userData.ClientId = userData.Source + "_" + userData.SourceId + "_" + userData.CustomerType + "_" + userData.CustomerId
return userData, nil return userData, nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment