@@ -77,27 +77,32 @@ - (NSString *)stringTimesAgo{
77
77
78
78
NSString *text = nil ;
79
79
80
- NSInteger agoCount = [self monthsAgo ];
80
+ NSInteger agoCount = [self yearsAgo ];
81
81
if (agoCount > 0 ) {
82
- text = [NSString stringWithFormat: @" %ld 个月前 " , (long )agoCount];
82
+ text = [NSString stringWithFormat: @" %ld 年前 " , (long )agoCount];
83
83
}else {
84
- agoCount = [self daysAgoAgainstMidnight ];
84
+ agoCount = [self monthsAgo ];
85
85
if (agoCount > 0 ) {
86
- text = [NSString stringWithFormat: @" %ld 天前 " , (long )agoCount];
86
+ text = [NSString stringWithFormat: @" %ld 个月前 " , (long )agoCount];
87
87
}else {
88
- agoCount = [self hoursAgo ];
88
+ agoCount = [self daysAgoAgainstMidnight ];
89
89
if (agoCount > 0 ) {
90
- text = [NSString stringWithFormat: @" %ld 小时前 " , (long )agoCount];
90
+ text = [NSString stringWithFormat: @" %ld 天前 " , (long )agoCount];
91
91
}else {
92
- agoCount = [self minutesAgo ];
92
+ agoCount = [self hoursAgo ];
93
93
if (agoCount > 0 ) {
94
- text = [NSString stringWithFormat: @" %ld 分钟前 " , (long )agoCount];
94
+ text = [NSString stringWithFormat: @" %ld 小时前 " , (long )agoCount];
95
95
}else {
96
- agoCount = [self secondsAgo ];
97
- if (agoCount > 15 ) {
98
- text = [NSString stringWithFormat: @" %ld 秒前 " , (long )agoCount];
96
+ agoCount = [self minutesAgo ];
97
+ if (agoCount > 0 ) {
98
+ text = [NSString stringWithFormat: @" %ld 分钟前 " , (long )agoCount];
99
99
}else {
100
- text = @" 刚刚" ;
100
+ agoCount = [self secondsAgo ];
101
+ if (agoCount > 15 ) {
102
+ text = [NSString stringWithFormat: @" %ld 秒前" , (long )agoCount];
103
+ }else {
104
+ text = @" 刚刚" ;
105
+ }
101
106
}
102
107
}
103
108
}
0 commit comments