Browse Source

added cliend id in header

pull/1/head
ccr 6 years ago
parent
commit
7053c3722c
  1. 2
      GMERemittance/Library/WebLinks/WkWebView/WkWebViewController.swift
  2. 1
      GMERemittance/Module/AutoDebit/User Interface/View/AutoDebitViewController.swift
  3. 4
      GMERemittance/RestApiManager.swift

2
GMERemittance/Library/WebLinks/WkWebView/WkWebViewController.swift

@ -39,7 +39,7 @@ class WkWebViewController: UIViewController {
let headers = self.headers ?? [] let headers = self.headers ?? []
print(self.url)
if let myURL = URL(string: self.url ?? "") { if let myURL = URL(string: self.url ?? "") {
var myRequest = URLRequest(url: myURL) var myRequest = URLRequest(url: myURL)

1
GMERemittance/Module/AutoDebit/User Interface/View/AutoDebitViewController.swift

@ -73,6 +73,7 @@ class AutoDebitViewController: UIViewController {
private func openWkWebViewWith(url: String) { private func openWkWebViewWith(url: String) {
let viewcontroller = UIStoryboard.init(name: "WKWebView", bundle: nil).instantiateViewController(withIdentifier: "WkWebViewController") as! WkWebViewController let viewcontroller = UIStoryboard.init(name: "WKWebView", bundle: nil).instantiateViewController(withIdentifier: "WkWebViewController") as! WkWebViewController
viewcontroller.url = url viewcontroller.url = url
viewcontroller.headers = self.header
let nvc = UINavigationController.init(rootViewController: viewcontroller) let nvc = UINavigationController.init(rootViewController: viewcontroller)
self.present(nvc, animated: true, completion: nil) self.present(nvc, animated: true, completion: nil)
} }

4
GMERemittance/RestApiManager.swift

@ -65,7 +65,9 @@ class RestApiMananger {
return [ return [
"Authorization": "Bearer " + accessCode, "Authorization": "Bearer " + accessCode,
"GME-TOKEN" : "39587YT398@FBQOW8RY3#948R7GB@CNEQW987GF87$TD18$1981..919@@##joghndvberteiru", "GME-TOKEN" : "39587YT398@FBQOW8RY3#948R7GB@CNEQW987GF87$TD18$1981..919@@##joghndvberteiru",
"Content-Type": "application/json"]
"Content-Type": "application/json",
"clientId": Utility.getMyId()
]
} }

Loading…
Cancel
Save