Browse Source

changed to post

pull/1/head
gme_2 6 years ago
parent
commit
241e551980
  1. 2
      GMERemittance/Module/TransactionHistory/Application Logic/Service/TransactionHistoryServiceType.swift

2
GMERemittance/Module/TransactionHistory/Application Logic/Service/TransactionHistoryServiceType.swift

@ -20,7 +20,7 @@ protocol FetchTransactionHistoryService: ApiServiceType {
extension FetchTransactionHistoryService {
func fetchTransactionHistories(user: String, param: [String: String]?, success: @escaping (([TransactionModel]) -> ()), failure: @escaping ((Error) -> ())) {
let url = baseUrl + "mobile/tranhistory/" + "\(user)"
self.auth.request(method: .get, url: url, params: param, success: { (response: TransactionModelContainer) in
self.auth.request(method: .post, url: url, params: param, success: { (response: TransactionModelContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])
failure(error)

Loading…
Cancel
Save