Browse Source

changed refresh url

pull/1/head
gme_2 6 years ago
parent
commit
22e42b1743
  1. 3
      GMERemittance/Module/Home/Application Logic/Service/HomeServiceType.swift

3
GMERemittance/Module/Home/Application Logic/Service/HomeServiceType.swift

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

Loading…
Cancel
Save