fix error

phiz
stewen 2023-08-04 17:30:34 +08:00
parent 58a8e5b804
commit 366f8ab9ac
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ static MopPlugin *_instance;
} }
else if ([@"updateLanguage" isEqualToString:call.method]) { else if ([@"updateLanguage" isEqualToString:call.method]) {
NSLog(@"updateLanguage"); NSLog(@"updateLanguage");
NSString cCode = call.arguments[@"countryCode"]]; NSString cCode = call.arguments[@"countryCode"];
NSString cLang = call.arguments[@"languageCode"]]; NSString cLang = call.arguments[@"languageCode"];
[PhizLanguageData sharedInstance].countryCode = cCode; [PhizLanguageData sharedInstance].countryCode = cCode;
[PhizLanguageData sharedInstance].languageCode = cLang; [PhizLanguageData sharedInstance].languageCode = cLang;
} }