我想在 afnetworking 中做一个发布请求,
这是我的 ASI 代码:
NSURL *mainurl = [NSURL URLWithString:@"xxxx/api/xxx/"];
ASIFormDataRequest *requestt = [ASIFormDataRequest requestWithURL:mainurl];
[requestt addPostValue:GETUnicidentifire forKey:@"UniqueId"];
[requestt addPostValue:JsonOrderDetail forKey:@"jsonProduct"];
[requestt addPostValue:BranchId forKey:@"BranchId"];
[requestt addPostValue:OrderToTime forKey:@"OrderToTime"];
[requestt setCompletionBlock:^{
// Process the response
}];
[requestt setFailedBlock:^{
NSError *error = [requestt error];
我怎样才能在 AFnetworking 中做同样的丁字裤?