| | |
| | | #define SECRET_KEY @"WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss" |
| | | |
| | | |
| | | #define TIME_OUT 15.0f |
| | | #define TIME_OUT 30.0f |
| | | |
| | | @implementation EZHttpUtil |
| | | |
| | |
| | | * @param block 回调block |
| | | */ |
| | | - (void)getChildToken:(void (^)(NSString *accessToken))block{ |
| | | |
| | | |
| | | //2.设置请求参数 |
| | | NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; |
| | | [parameters setValue: [NSString stringWithFormat:@"%d", [GlobalKit shareKit].hdlPlatform] forKey:@"platform"]; |
| | |
| | | if ([EZSDK sharedInstance].delegate&&[[EZSDK sharedInstance].delegate respondsToSelector:@selector(addDeviceSuccessed:)]) { |
| | | // HDLEZLog(@"添加设备设备成功回调:%@",parameters[@"deviceSerial"]); |
| | | [[EZSDK sharedInstance].delegate addDeviceSuccessed:parameters[@"deviceSerial"]]; |
| | | // |
| | | // //设置设备去掉验证码 |
| | | // [EZOPENSDK setDeviceEncryptStatus:deviceSerial |
| | | // verifyCode:verifyCode |
| | | // encrypt:NO |
| | | // completion:^(NSError *error) { |
| | | // if (error) |
| | | // { |
| | | // |
| | | // } |
| | | // else |
| | | // { |
| | | // } |
| | | // |
| | | // }]; |
| | | } |
| | | } |
| | | |