File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11package com .qiniu .conf ;
22
3+ import java .util .Random ;
4+
35public class Conf {
46 public static final String VERSION = "6.0.5" ;
57 public static String UP_HOST = "http://upload.qiniu.com" ;
68 public static String UP_HOST2 = "http://up.qiniu.com" ;
79
10+ private static String id = genId ();
11+
812 public static String getUserAgent () {
9- return "QiniuAndroid/" + VERSION + " (" + android .os .Build .VERSION .RELEASE + "; " + android .os .Build .MODEL + ")" ;
13+ return "QiniuAndroid/" + VERSION + " (" + android .os .Build .VERSION .RELEASE + "; "
14+ + android .os .Build .MODEL + "; " + id +")" ;
15+ }
16+
17+ private static String genId (){
18+ Random r = new Random ();
19+ int rnum = r .nextInt (999 );
20+ return System .currentTimeMillis () + "" + rnum ;
1021 }
1122}
You can’t perform that action at this time.
0 commit comments