作者 tangxvhui

单点登录修改

@@ -2,6 +2,7 @@ package ucenter @@ -2,6 +2,7 @@ package ucenter
2 2
3 import ( 3 import (
4 "encoding/json" 4 "encoding/json"
  5 + "net/url"
5 "oppmg/common/config" 6 "oppmg/common/config"
6 "oppmg/common/log" 7 "oppmg/common/log"
7 "oppmg/protocol" 8 "oppmg/protocol"
@@ -37,8 +38,9 @@ func RequestUCenterLoginBySecret(secret string) (*ResponseLogin, error) { @@ -37,8 +38,9 @@ func RequestUCenterLoginBySecret(secret string) (*ResponseLogin, error) {
37 var uclientReturn ResponseLogin 38 var uclientReturn ResponseLogin
38 param := RequesLogin{ 39 param := RequesLogin{
39 Type: 3, 40 Type: 3,
40 - Secret: secret, 41 + Secret: url.QueryEscape(secret),
41 } 42 }
  43 +
42 uclient := NewUCenterClient() 44 uclient := NewUCenterClient()
43 btBody, err := uclient.Call(param) 45 btBody, err := uclient.Call(param)
44 if err != nil { 46 if err != nil {