1 注意BOOL值
NSInteger operType=self.isShowSchoolMeals;
{@"operType":@(operType)}
注:接口 O和1 不要用BOOL穿值,用BOOL包装@(operType) 穿出去的是true和false
要用NSInteget 接受转换成 0 和 1 再传值
2 注意中文要转编码
NSString *htmlUrl = @"http://172.16.14.24:8080/module/today-headline.html?province=广东省&city=广州市";
NSCharacterSet *set=[NSCharacterSet URLQueryAllowedCharacterSet];
htmlUrl=[htmlUrl stringByAddingPercentEncodingWithAllowedCharacters:set];