Skip to content

Commit

Permalink
Merge pull request #2802 from JeffreySu/Developer
Browse files Browse the repository at this point in the history
修复类型问题 #2800
  • Loading branch information
JeffreySu authored Mar 21, 2023
2 parents 5586ea4 + e070da9 commit 4f52f5d
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 4f52f5d

Please sign in to comment.