Commit 5b1cc58ee87d37e6f2376591eb3bfb4596265ee2
1 parent
648692f4
no message
Showing
1 changed file
with
6 additions
and
1 deletions
CNLiveSettingModule/Classes/AboutUs/CNLiveAboutUsController.m
| ... | ... | @@ -35,6 +35,11 @@ static const NSInteger timeValue = 1.5; |
| 35 | 35 | |
| 36 | 36 | #pragma mark - 加载数据 |
| 37 | 37 | - (void)loadData { |
| 38 | + // 版本 | |
| 39 | + NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; | |
| 40 | + NSString *shortVersion = [infoDictionary objectForKey:@"CFBundleShortVersionString"]; | |
| 41 | + NSString *appVersion = TestEnvironment?[NSString stringWithFormat:@"%@ beta",shortVersion]:shortVersion; | |
| 42 | + | |
| 38 | 43 | NSArray *data = @[ |
| 39 | 44 | @{ |
| 40 | 45 | @"style":@"1", |
| ... | ... | @@ -75,7 +80,7 @@ static const NSInteger timeValue = 1.5; |
| 75 | 80 | @{ |
| 76 | 81 | @"style":@"4", |
| 77 | 82 | @"title":@"当前版本", |
| 78 | - @"content":@"0.0.1", | |
| 83 | + @"content":appVersion, | |
| 79 | 84 | @"height":@"51", |
| 80 | 85 | @"lineHeight":@"1" |
| 81 | 86 | }, | ... | ... |