正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -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 { |
-
请 注册 或 登录 后发表评论