1 修改.plist 文件, 添加key值
2 添加代码
#define SYS_CLIENTVER [[[NSBundle mainBundle] infoDictionary] objectForKey:@"sys-clientVersion"]//eg:公共参数
+ (NSDictionary *)addCommonParameters:(NSDictionary*)dic{ //给所有接口,添加版本号参数
NSMutableDictionary *param = [NSMutableDictionary dictionaryWithDictionary:dic];
[param setObject:SYS_CLIENTVER forKey:@"version"]; [param setObject:@"Iph" forKey:@"platform"];
return [NSDictionary dictionaryWithDictionary:param];
}