//初始化方法
function recordInit(scriptName){
//let ipInfoJson = getIP()
// let ip = ipInfoJson.cip
// let location = ipInfoJson.cname
let deviceIMEI = '',deviceBrand='',deviceModel='',AndroidVer='',deviceWH='',deviceBoard='',deviceMac='',AndroidId=''
try {
deviceBrand = device.brand;//制造厂商
deviceBoard = device.board;//主板
deviceMac = device.getMacAddress()//Mac地址
AndroidId = device.getAndroidId()//安卓ID
data={
"category":1,
"uuid":"55421",
"device_code":"086",
"configure":"5656E",
"owner":"1",
"model":device.model,
"release": device.release,
"memory":~~(device.getAvailMem()/1024/1024)+'MB',
"imei":device.getIMEI(),
"width":device.width,
"height":device.height,
"battery":device.getBattery()
}
var token=setting.storage.get('access_token')
var r