[XPFHttpRequest postWithURLString:str parameters:parameters success:^(id responseObject) {
// 有時(shí)候返回16 所有要轉(zhuǎn)換成 字典粗井;
//<7b227265 74636f64 65223a32 3030302c 226d7367 223a22e6 b7bbe58a a0e68890 e58a9f21 222c2264 61746122 3a5b5d7d>
NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil];
if ([[dic objectForKey:@"retcode"] isEqual:@2000]) {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示" message:[dic objectForKey:@"msg"]? ? preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction * action = [UIAlertAction actionWithTitle:@"確定" style:UIAlertActionStyleDefault? handler:nil];
[alert addAction:action];
[self presentViewController:alert animated:YES completion:nil];
}else {
XPFLog(@" 師傅我看見你了 123");
}
XPFLog(@" 師傅我看見你了");
} failure:^(NSError *error) {
XPFLog(@"123");
}];