XMLWAN 3 lat temu
rodzic
commit
2b3993e438

+ 2 - 2
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go Wyświetl plik

@@ -1051,8 +1051,8 @@ 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 1058
 	//session_key, _ := service.SendWxAuthAPIOne(appid, secret, grant_type, code)