Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复类型问题 #2800 #2802

Merged
merged 1 commit into from
Mar 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public static GetUseridResult GetUserid(string accessTokenOrAppKey, string mobil
/// <param name="emailType">邮箱类型:1-企业邮箱(默认);2-个人邮箱</param>
/// <param name="timeOut">代理请求超时时间(毫秒)</param>
/// <returns></returns>
public static GetUseridResult GetUseridByEmail(string accessTokenOrAppKey, string email, Email_Type emailType = (int)Email_Type.企业邮箱, int timeOut = Config.TIME_OUT)
public static GetUseridResult GetUseridByEmail(string accessTokenOrAppKey, string email, Email_Type emailType = Email_Type.企业邮箱, int timeOut = Config.TIME_OUT)
{
return ApiHandlerWapper.TryCommonApi(accessToken =>
{
Expand All @@ -244,7 +244,7 @@ public static GetUseridResult GetUseridByEmail(string accessTokenOrAppKey, strin
var data = new
{
email = email,
email_type = emailType
email_type = (int)emailType
};

return CommonJsonSend.Send<GetUseridResult>(null, url, data, CommonJsonSendType.POST, timeOut);
Expand Down Expand Up @@ -834,7 +834,7 @@ public static async Task<GetUseridResult> GetUseridAsync(string accessTokenOrApp
/// <param name="emailType">邮箱类型:1-企业邮箱(默认);2-个人邮箱</param>
/// <param name="timeOut">代理请求超时时间(毫秒)</param>
/// <returns></returns>
public static async Task<GetUseridResult> GetUseridByEmailAsync(string accessTokenOrAppKey, string email, Email_Type emailType = (int)Email_Type.企业邮箱, int timeOut = Config.TIME_OUT)
public static async Task<GetUseridResult> GetUseridByEmailAsync(string accessTokenOrAppKey, string email, Email_Type emailType = Email_Type.企业邮箱, int timeOut = Config.TIME_OUT)
{
return await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
{
Expand All @@ -843,7 +843,7 @@ public static async Task<GetUseridResult> GetUseridByEmailAsync(string accessTok
var data = new
{
email = email,
email_type = emailType
email_type = (int)emailType
};

return await CommonJsonSend.SendAsync<GetUseridResult>(null, url, data, CommonJsonSendType.POST, timeOut).ConfigureAwait(false);
Expand Down