宠物店修改
This commit is contained in:
@@ -313,10 +313,24 @@ methodType url : (NSString *)url
|
||||
failure:(void (^)(NSError* err))failure
|
||||
{
|
||||
|
||||
NSString*macid=[[deviceId componentsSeparatedByString:@"_"] firstObject];
|
||||
|
||||
NSString*deviceType=[[deviceId componentsSeparatedByString:@"_"] lastObject];
|
||||
|
||||
NSString*type=@"0";//0换水 1杀菌
|
||||
|
||||
if ([deviceType isEqualToString:@"3f"])
|
||||
{
|
||||
type=@"1";
|
||||
}
|
||||
|
||||
|
||||
|
||||
NSDictionary*para=@{
|
||||
@"deviceId":deviceId,
|
||||
@"deviceId":macid,
|
||||
@"waterRemind":waterRemind,
|
||||
@"remindCycle":remindCycle
|
||||
@"remindCycle":remindCycle,
|
||||
@"type":type
|
||||
|
||||
};
|
||||
[AFNOHeaderHttpTool requestWihtMethod:RequestTypePost url:kSetRemindWaterInf params:para success:success failure:failure];
|
||||
|
||||
Reference in New Issue
Block a user