if(requestDictionary != nil)
{
//添加参数,将参数拼接在url后面
NSMutableString *paramsString = [NSMutableString string];
NSArray *allkeys = [requestDictionary allKeys];
for (NSString *key in allkeys) {
NSString *value = [requestDictionary objectForKey:key];
[paramsString appendFormat:@"&%@=%@", key, value];
}
NSLog(@"完整URL=%@?%@",url,paramsString);
}
时间: 2024-11-05 16:26:15