修改bug

This commit is contained in:
2026-02-11 21:09:37 +08:00
parent c9743cb363
commit 5c273c3963
5 changed files with 15 additions and 3 deletions

View File

@@ -140,6 +140,10 @@
"Nickname" = "Nickname";
"Gender" = "Gender";
"User ID" = "User ID";
"Modify Gender" = "Modify Gender";
"Male" = "Male";
"Female" = "Female";
"The Third Gender" = "The Third Gender";
" Paste Ta's Words" = " Paste Ta's Words";

View File

@@ -142,6 +142,10 @@
"Nickname" = "用户名";
"Gender" = "性别";
"User ID" = "用户ID";
"Modify Gender" = "修改性别";
"Male" = "男";
"Female" = "女";
"The Third Gender" = "第三性别";
" Paste Ta's Words" = " 粘贴TA的话";

View File

@@ -212,6 +212,7 @@
// }
// }];
[[KBNetworkManager shared] POST:API_CHARACTER_ADD_USER_CHARACTER jsonBody:params headers:nil autoShowBusinessError:true completion:^(NSDictionary * _Nullable json, NSURLResponse * _Nullable response, NSError * _Nullable error) {
[KBHUD dismiss];
if (!error) {
[self refreshUserCharacterCacheForKeyboard];
}

View File

@@ -182,7 +182,7 @@
- (UILabel *)titleLabel {
if (!_titleLabel) {
_titleLabel = [UILabel new];
_titleLabel.text = @"Modify Gender";
_titleLabel.text = KBLocalized(@"Modify Gender");
_titleLabel.textColor = [UIColor blackColor];
_titleLabel.font = [KBFont medium:16];
}
@@ -226,7 +226,7 @@
- (UIButton *)saveButton {
if (!_saveButton) {
_saveButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_saveButton setTitle:@"Save" forState:UIControlStateNormal];
[_saveButton setTitle:KBLocalized(@"Save") forState:UIControlStateNormal];
[_saveButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
_saveButton.titleLabel.font = [KBFont medium:16];
_saveButton.backgroundColor = [UIColor colorWithRed:0.02 green:0.75 blue:0.67 alpha:1.0];

View File

@@ -576,8 +576,11 @@ autoShowBusinessError:YES
if (!_manager) {
NSURLSessionConfiguration *cfg = [NSURLSessionConfiguration ephemeralSessionConfiguration];
cfg.requestCachePolicy = NSURLRequestReloadIgnoringLocalCacheData;
cfg.timeoutIntervalForRequest = self.timeout; //
cfg.timeoutIntervalForResource = 60.0; // 60s
// per-request serializer.timeoutInterval
if (@available(iOS 11.0, *)) { cfg.waitsForConnectivity = YES; }
// if (@available(iOS 11.0, *)) { cfg.waitsForConnectivity = YES; }
_manager = [[AFHTTPSessionManager alloc] initWithBaseURL:nil sessionConfiguration:cfg];
// 使 JSON
_manager.responseSerializer = [AFHTTPResponseSerializer serializer];