|
@@ -120,7 +120,7 @@
|
|
|
NSString *speechRate = [[RoleModel roleModelDict] objectForKey:title];
|
|
|
if ([SLGlobalInfo SharedInstance].loginInfo && speechRate) {
|
|
|
RoleModel *model = [RoleModel mj_objectWithKeyValues:[[SLGlobalInfo SharedInstance].roleModel mj_keyValues]];
|
|
|
- if ([title containsString:@"音"]) {
|
|
|
+ if ([title containsString:NSLocalizedString(@"音", nil)]) {
|
|
|
model.language = speechRate;
|
|
|
}else {
|
|
|
model.speechRate = speechRate;
|
|
@@ -130,8 +130,8 @@
|
|
|
|
|
|
}];
|
|
|
});
|
|
|
- NSString *url = [title containsString:@"音"] ? @"/api/User/UpdateAILanguage" : @"/api/User/UpdateSpeechRate";
|
|
|
- NSDictionary *params = [title containsString:@"音"] ? @{@"language" : speechRate} : @{@"speechRate" : speechRate};
|
|
|
+ NSString *url = [title containsString:NSLocalizedString(@"音", nil)] ? @"/api/User/UpdateAILanguage" : @"/api/User/UpdateSpeechRate";
|
|
|
+ NSDictionary *params = [title containsString:NSLocalizedString(@"音", nil)] ? @{@"language" : speechRate} : @{@"speechRate" : speechRate};
|
|
|
[[SLHttpCenter SharedInstance] getWithUrl:url parameter:params success:^(id responseObject) {
|
|
|
[SLGlobalInfo SharedInstance].roleModel = model;
|
|
|
} failure:^(SPRequestError *error) {
|