更新 Api+Medals.m 中的请求路径为 "medal/square",修改 MedalsViewController.m 中的导航栏标题以支持勋章广场,新增本地化字符串 "20.20.61_text_10" 以表示勋章广场,保持代码结构一致性。

This commit is contained in:
edwinQQQ
2025-06-19 14:09:36 +08:00
parent 06fecf1bf4
commit da8d88347e
3 changed files with 5 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
}
+ (void)medalSquare:(HttpRequestHelperCompletion)completion pageNo:(NSNumber *)pageNo pageSize:(NSNumber *)pageSize type:(NSNumber *)type {
[self makeRequest:@"medal/useMedal"
[self makeRequest:@"medal/square"
method:HttpRequestHelperMethodGET
completion:completion,
__FUNCTION__, pageNo, pageSize, type, nil];

View File

@@ -92,7 +92,7 @@ typedef enum : NSInteger {
- (void)setupNavigationBar {
[self setupCustomNavigationBar:^{}
title:YMLocalizedString(@"20.20.61_text_1")
title:self.isForMyMedals ? YMLocalizedString(@"20.20.61_text_1") : YMLocalizedString(@"20.20.61_text_10")
titleColor:[UIColor whiteColor]];
[self setupCustonNavigationRightButtons:@[
[self medalsRankButton],
@@ -332,7 +332,8 @@ typedef enum : NSInteger {
#pragma mark - Button actions
- (void)didTapSquareButton:(UIButton *)sender {
MedalsViewController *vc = [[MedalsViewController alloc] initForMedalsSquare];
[self.navigationController pushViewController:vc animated:YES];
}
- (void)didTapRankButton:(UIButton *)sender {

View File

@@ -3666,3 +3666,4 @@
"20.20.61_text_7" = "You have not received any medals Go to the medal square and check it out!";
"20.20.61_text_8" = "Expiration time:%@";
"20.20.61_text_9" = "Forever";
"20.20.61_text_10" = "Medals Square";