Closed gaming-hacker closed 6 years ago
is Just supported for swift 4.0?
public var keys:Dictionary<Key,Value>.Keys {
return _data.keys
} public var values:Dictionary <Key,Value>.Values { return _data.values }
change, is ok!
@juzhizhang create a PR with relevant changes, please.
This is my response message. here is my code let params = ["username" : email, "password": password] as [String : Any] Just.post(Constant.url.login1,params: params) { (r) in if !r.ok { print(r.text!)
}
else{
let json = r.text!
print(json)
let login = Mapper<UserRoot>().map(JSONString: json)
let errorValue = login?.success
self.userDetails1 = login?.details
DispatchQueue.main.async {
if errorValue == true {
self.userDetails1.backup = self.passwordTF.text!
self.passwordTF.text = ""
}
else if errorValue == false {
}
}
}
but after giving proper login credentials it is showing that username password is wrong. please help..
check to see if you have synced the thread back on the main thread and update the gui
Okay Thanks
hi, i get the following errors
lines 330-333
i didn't see the "values" being used anywhere?? i commented out the lines and checked a couple of files and servers and got back the correct GET/POST