宠物店修改
This commit is contained in:
@@ -241,6 +241,26 @@
|
||||
return controlName;
|
||||
|
||||
}
|
||||
+(XuToControlName *)currentPetsXuToControlName:(NSString *)macaddress
|
||||
{
|
||||
NSString *key = [NSString stringWithFormat:@"newXuTo%@",macaddress];
|
||||
NSString *file = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).firstObject stringByAppendingPathComponent:key];
|
||||
XuToControlName *controlName = [NSKeyedUnarchiver unarchiveObjectWithFile:file];
|
||||
if (!controlName||[controlName isKindOfClass:[NSNull class]]) {
|
||||
controlName = [[XuToControlName alloc] init];
|
||||
controlName.shajunLight = @"杀菌灯";
|
||||
controlName.zengyangPump = @"换气";
|
||||
controlName.light1 = @"杀菌";
|
||||
controlName.light2 = @"恒温";
|
||||
controlName.zaolangPump = @"造浪泵";
|
||||
controlName.huLiDeng = @"护理灯";
|
||||
controlName.xunhuanPump = @"照明";
|
||||
controlName.jiaRe = @"加热棒";
|
||||
controlName.macAddress = macaddress;
|
||||
}
|
||||
return controlName;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user