Browse Source

体积小

XMLWAN 2 years ago
parent
commit
551502402c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      controllers/xcx_mobile_api_controller.go/xcx_api_controller.go

+ 3 - 3
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go View File

1055
 	var code = "041pXnGa1eLxTB0iypFa1W6USs1pXnGK"
1055
 	var code = "041pXnGa1eLxTB0iypFa1W6USs1pXnGK"
1056
 
1056
 
1057
 	openId, _ := service.SendWxAuthAPI(appid, secret, grant_type, code)
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
 	this.ServeSuccessJSON(map[string]interface{}{
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
 }