获取当前设备详细信息 (device.info)

声明

设备信息 = device.info()

参数及返回值

  • 设备信息
    • table型,当前设备的详细信息

说明

此函数涉及数据库查询,为了提升性能,采用了20s缓存。 如果只是为了查询手机串号,请用device.serial()

示例

sys.print("当前设备信息:", device.info())
--输出
--belong 设备在系统属于的用户
 {"version": "9", "imei": "99001342120350", "iccid": "89860315045713290084", "serial": "674b3a0d", "belong": "admin", "model": "Redmi 7", "imsi": "460036360524580", "sdk": "28"}
powered by GitbookFile Modify: 2021-03-27 23:14:19

results matching ""

    No results matching ""