我正在尝试使用alamofire。.但是参数的顺序混合了。.我正在尝试通过此功能更改密码
func changePassword(uid: String, accessToken: String, currentPassword: String, newPassword: String, confirmNewPassword: String, completion: @escaping (JSON?, Error?) -> Void) {
let parameters: [String : Any] = [
"uid": uid,
"current_pass" : currentPassword,
"new_pass": newPassword,
"confirm_new_pass": confirmNewPassword,
"signature" : (uid + currentPassword + newPassword + confirmNewPassword)
]
let URLString = MyClient.baseURL
MyClient.request(with: URLString, method: .get, parameters: parameters) { (json, error) in
guard error == nil, let json = json else {
completion(nil, error)
return
}
completion(json, nil)
}
}
但是,我的参数不正确。我有什么办法可以解决这个问题?