|
|
@@ -180,7 +180,7 @@
|
|
|
}
|
|
|
|
|
|
- (void)prepareViewDidLoad {
|
|
|
- [self requestDeviceListForAction:ksItemTypeCodeTrigger];
|
|
|
+ [self requestDeviceListForAction:ksItemTypeCodeAction];
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -188,11 +188,13 @@
|
|
|
|
|
|
- (void)requestDeviceListForAction:(NSString *)typeCode {
|
|
|
//parameters
|
|
|
- NSDictionary *parameter = @{@"item_type_code": typeCode};
|
|
|
+// NSDictionary *parameter = @{@"item_type_code": typeCode};
|
|
|
+ NSArray *arr = @[typeCode];
|
|
|
+// NSString *path = [NSString stringWithFormat:API_GET_ITEM_DEVICES, ksItemTypeCodeAction];
|
|
|
+ NSString *path = [[JDFacade facade] getUrlWithCustAndGroupID:API_GET_ITEM_DEVICES arguments:arr];
|
|
|
|
|
|
- NSString *path = [NSString stringWithFormat:API_GET_ITEM_DEVICES, ksItemTypeCodeAction];
|
|
|
|
|
|
- [[RequestHandler handler] sendAsyncGetRequestAPIPath:path parameters:parameter modelClass:[ItemListModel class] completion:^(id responseObject) {
|
|
|
+ [[RequestHandler handler] sendAsyncGetRequestAPIPath:path parameters:nil modelClass:[ItemListModel class] completion:^(id responseObject) {
|
|
|
if (!responseObject) {//응답결과가 잘못되었거나 없을 경우,
|
|
|
return;
|
|
|
}
|