see999 пре 2 година
родитељ
комит
836bc12c1a
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      controllers/xcx_mobile_api_controller.go/xcx_api_controller.go

+ 5 - 5
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go Прегледај датотеку

@@ -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
 }