Commit 4d5d4553 authored by haoyanbin's avatar haoyanbin

1

parent 9e5679a8
...@@ -340,16 +340,16 @@ func GetClientInfoByToken(token string) (*UserInfo, error) { ...@@ -340,16 +340,16 @@ func GetClientInfoByToken(token string) (*UserInfo, error) {
return nil, errors.New("用户数据有误") return nil, errors.New("用户数据有误")
} }
if tokenData[1] == "1" { //if tokenData[1] == "1" {
source, err := DataAesDecrypt(tokenData[0]) // source, err := DataAesDecrypt(tokenData[0])
if err != nil { // if err != nil {
return nil, errors.New("用户数据有误") // return nil, errors.New("用户数据有误")
} // }
//
if len(source) <= 0 { // if len(source) <= 0 {
return nil, errors.New("用户数据有误") // return nil, errors.New("用户数据有误")
} // }
} //}
userData := new(UserInfo) userData := new(UserInfo)
userData.Source = tokenData[0] userData.Source = tokenData[0]
...@@ -392,7 +392,8 @@ func SaveMsg(msg *SendMsg) { ...@@ -392,7 +392,8 @@ func SaveMsg(msg *SendMsg) {
} }
if mqData.BusinessId != "" { if mqData.BusinessId != "" {
mqData.BusinessId, _ = DataAesDecrypt(mqData.BusinessId) //mqData.BusinessId, _ = DataAesDecrypt(mqData.BusinessId)
mqData.BusinessId = mqData.BusinessId
} }
mqData.ProcedureType = msg.ProcedureType mqData.ProcedureType = msg.ProcedureType
......
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