예제 #1
0
        public RequestResult <BoolResult> UserManage_LoginCHK(string userid, string password)
        {
            RequestResult <UserProfileResult> profile = UserProfile(userid);

            if (!string.IsNullOrWhiteSpace(profile.ErrorMessage))
            {
                return(new RequestResult <BoolResult> {
                    ErrorMessage = profile.ErrorMessage
                });
            }
            string uri = Codehelper.Get3011ApiUrl(profile.ReturnValue.data.Country);

            if (uri.EqualsIgnoreCaseAndBlank(this.Wrapper.Client.BaseAddress.ToString()))
            {
                return(UserManage_LoginCHK(userid, password, profile.ReturnValue.data.Country));
            }
            else
            {
                using (LoginApiClient client2 = new LoginApiClient(profile.ReturnValue.data.Country))
                {
                    return(client2.UserManage_LoginCHK(userid, password, profile.ReturnValue.data.Country));
                }
            }
        }
예제 #2
0
 public LoginApiClient(string country)
 {
     Wrapper = new HttpClientWrapper(new Uri(Codehelper.Get3011ApiUrl(country)));
 }