Пример #1
0
        /// <summary>
        /// 返回mac地址、imei或者idfa,默认是空的
        /// </summary>
        /// <returns></returns>
        public static string GetMacOrImeiOrIdfa()
        {
            return(string.Empty);

            string mac  = _deviceInfo.GetMacAddress();
            string imei = _deviceInfo.GetPhoneImei();
            string idfa = _deviceInfo.GetIDFA();

            if (!string.IsNullOrEmpty(mac))
            {
                return(mac);
            }
            if (!string.IsNullOrEmpty(imei))
            {
                return(imei);
            }
            if (!string.IsNullOrEmpty(idfa))
            {
                return(idfa);
            }

            return("");
        }