|
@@ -1051,13 +1051,13 @@ func (this *XcxApiController) GetAppId() {
|
1051
|
1051
|
var appid = "wxcdf53b48b7df107e"
|
1052
|
1052
|
var secret = "94e944a69ad1d43ac447f5a8769ab801"
|
1053
|
1053
|
var grant_type = "authorization_code"
|
1054
|
|
- //code := this.GetString("js_code")
|
1055
|
|
- var code = "041pXnGa1eLxTB0iypFa1W6USs1pXnGK"
|
|
1054
|
+ code := this.GetString("js_code")
|
|
1055
|
+ //var code = "041pXnGa1eLxTB0iypFa1W6USs1pXnGK"
|
1056
|
1056
|
|
1057
|
1057
|
openId, _ := service.SendWxAuthAPI(appid, secret, grant_type, code)
|
1058
|
|
- // session_key, _ := service.SendWxAuthAPIOne(appid, secret, grant_type, code)
|
|
1058
|
+ //session_key, _ := service.SendWxAuthAPIOne(appid, secret, grant_type, code)
|
1059
|
1059
|
this.ServeSuccessJSON(map[string]interface{}{
|
1060
|
|
- "openId": openId,
|
1061
|
|
- // "session_key": session_key,
|
|
1060
|
+ "data": openId,
|
|
1061
|
+ //"session_key": session_key,
|
1062
|
1062
|
})
|
1063
|
1063
|
}
|