AFURLRequestSerialization
SString*query =nil;
if(parameters) {
if (self.queryStringSerialization) {
NSError*serializationError;
query =self.queryStringSerialization(request, parameters, &serializationError);
if(serializationError) {
if(error) {
*error = serializationError;
}
returnnil;
}
}else{
switch (self.queryStringSerializationStyle) {
case AFHTTPRequestQueryStringDefaultStyle:
注意这句坑死人,会加等号,=
query = parameters;//AFQueryStringFromParameters(parameters);
break;
}
}
网友评论