/// <summary> /// 获取服务端的认证码 /// </summary> /// <param name="authorizeData">认证数据</param> /// <returns>认证码</returns> public static OpenApiResult <AuthorizationCode> GetCode(AuthorizeData authorizeData) { UpdateClient(); var url = UriPathBuilder.Combine(OAuthService.OAuthServicePath, "token"); var data = new NameValueCollection(); authorizeData.UpdateDatas(data); return(client.HttpPostForResult <AuthorizationCode>(url, data)); }