library/src/main/java/com/qiniu/android/dns/DnsManager.java
public static boolean needHttpDns() {
        try {
            TimeZone zone = TimeZone.getDefault();
            String id = zone.getID();
            return ("Asia/Shanghai".equals(id) || "Asia/Chongqing".equals(id) ||
                    "Asia/Harbin".equals(id) || "Asia/Urumqi".equals(id));

        } catch (Exception e) {
            return false;
        }
    }
public static boolean needHttpDns() {
        try {
            TimeZone zone = TimeZone.getDefault();
            String id = zone.getID();
            return ("Asia/Shanghai".equals(id) || "Asia/Chongqing".equals(id) ||
                    "Asia/Harbin".equals(id) || "Asia/Urumqi".equals(id));

        } catch (Exception e) {
            return false;
        }
    }
public static boolean needHttpDns ( ) { try { TimeZone zone = TimeZone . getDefault ( ) ; String id = zone . getID ( ) ; return ( "Asia/Shanghai" . equals ( id ) || "Asia/Chongqing" . equals ( id ) || "Asia/Harbin" . equals ( id ) || "Asia/Urumqi" . equals ( id ) ) ; } catch ( Exception e ) { return false ; } }
简单通过时区判断是否在大陆
简单通过时区判断是否在大陆