You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DeviceUtils.cs 497B

123456789101112131415161718
  1. namespace HealthMonitor.Core.Common
  2. {
  3. public static class DeviceUtils
  4. {
  5. /// <summary>
  6. /// 获取imei码的2位后缀码
  7. /// </summary>
  8. /// <param name="imei"></param>
  9. /// <returns></returns>
  10. public static string GetImeiSuffix(string imei)
  11. {
  12. long num;
  13. num = long.TryParse(imei, out num) ? num : 0;
  14. string suffix = string.Format("{0:D2}", num % 100);
  15. return suffix;
  16. }
  17. }
  18. }