示例#1
0
        public UserRegisterResponse Register(UserRegisterRequest req)
        {
            UserRegisterResponse response;
            try
            {
                response = new WePayClient().Invoke<UserRegisterRequest, UserRegisterResponse>(req, req.actionUrl);
            }
            catch (WePayException ex)
            {
                response = new UserRegisterResponse { access_token = "error", Error=ex };
            }

            return response;
        }
示例#2
0
        public UserRegisterResponse Register(UserRegisterRequest req)
        {
            UserRegisterResponse response;

            try
            {
                response = new WePayClient().Invoke <UserRegisterRequest, UserRegisterResponse>(req, req.actionUrl);
            }
            catch (WePayException ex)
            {
                response = new UserRegisterResponse {
                    access_token = "error", Error = ex
                };
            }

            return(response);
        }