Merge branch 'debug' into 'develop'
ts字段增加6位随机数.reviewed by yuliang See merge request !2
Showing
1 changed file
with
3 additions
and
2 deletions
@@ -156,8 +156,9 @@ | @@ -156,8 +156,9 @@ | ||
156 | } | 156 | } |
157 | 157 | ||
158 | -(NSString *)ts{ | 158 | -(NSString *)ts{ |
159 | - long long int date = (long long int)[[NSDate date] timeIntervalSince1970]; | ||
160 | - return [NSString stringWithFormat:@"%lld", date]?:@""; | 159 | + NSTimeInterval date = [[NSDate date] timeIntervalSince1970]*1000; |
160 | + int num = (arc4random() % 1000000); | ||
161 | + return [NSString stringWithFormat:@"%.0f%.6d", date,num]?:@""; | ||
161 | } | 162 | } |
162 | 163 | ||
163 | @end | 164 | @end |
-
Please register or login to post a comment