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);
}