|
|
@ -19,7 +19,7 @@ protocol UserInfoService: ApiServiceType { |
|
|
|
|
|
|
|
extension UserInfoService { |
|
|
|
func fetchUserInfo(param: [String: String], success: @escaping (User) -> (), failure: @escaping (Error) -> ()) { |
|
|
|
let url = baseUrl + "mobile/refreshcutomerinformation" |
|
|
|
let url = baseUrl + "mobile/CustomerProfile" |
|
|
|
auth.request(method: .post, url: url, params: param, success: { (response: UserContainer ) in |
|
|
|
if (response.errorCode ?? "") == "1" { |
|
|
|
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""]) |
|
|
@ -32,7 +32,6 @@ extension UserInfoService { |
|
|
|
failure(error) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}) { (error) in |
|
|
|
failure(error) |
|
|
|