Commit 9241fef3 cgx

修复bug

1 个父辈 83461616
......@@ -161,13 +161,13 @@
[super backAction];
return;
}
[self userSetupPrepareItemsRequest];
[self userSetupPrepareItemsRequest:NO];
} else { // AI睡眠教练页面->安睡设置页面
[self userSetupPrepareItemsRequest];
[self userSetupPrepareItemsRequest:YES];
}
}
- (void)userSetupPrepareItemsRequest {
- (void)userSetupPrepareItemsRequest:(BOOL)needUpdateAICoach {
[DSProgressHUD showProgressHUDWithInfo:@""];
[SleepReadyRequestModel userSetupPrepareItems:self.relaxItemsView.has_relax_items completion:^(SleepReadyRequestModel * _Nonnull requestModel) {
[DSProgressHUD dissmissProgressHUD];
......@@ -175,7 +175,10 @@
if (self.delegate && [self.delegate respondsToSelector:@selector(passAdjustedReadyItems:)]) {
[self.delegate passAdjustedReadyItems:self.relaxItemsView.has_relax_items];
}
if (needUpdateAICoach) {
// 刷新AI睡眠教练
[[NSNotificationCenter defaultCenter] postNotificationName:NeedUpdateAICoach object:nil];
}
[self.navigationController popViewControllerAnimated:YES];
}
}];
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!