0
我想在afnetworking
做一個POST請求,這是我的代碼絲毫ASI:後到服務器,更換ASIFormDataRequest到AFnetworking
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相同丁字褲?