Appearance
获取客户端信息
获取客户端相关信息
扫码在客户端内测试 => /jcommind/getAppInfo
参数名称 | 类型 | 是否必填 | 说明 |
---|---|---|---|
uuid | Number | N | 0 - timestamp 和 signature 为空 1 - 会回传设备唯一编码 |
返回值名称 | 类型 | 说明 | |
---|---|---|---|
code | Number | 0 - 失败 1 - 成功 | |
data | app | String | 客户端名称 |
appLogo | String | 客户端logo(>=7.5.0版本支持) | |
tenantId | String | 租户id(>=7.5.0版本支持) | |
app_code | String | 客户端标识code | |
version | String | 客户端版本信息,versionCode | |
versionName | String | 客户端显示版本信息 versionName | |
device | String | 设备 | |
system | String | 系统 | |
uuid | String | 设备唯一DeviceId,当uuid = 0,timestamp 和 signature 为空 | |
timestamp | String | 用于签名的时间戳 | |
signature | String | 签名 |
javascript
// window.CP2.getAppInfo({ uuid: 0 }).then((res) => {
// console.log(res);
// });
window.CP2.getAppInfo().then((res) => {
console.log(res);
});
// {
// "data": {
// "versionName": "9.2.0",
// "device": "iPhone X",
// "system": "iOS",
// "app": "目光资讯",
// "appLogo": "https://wwww.xxxx.png",
// "app_code": "xsb_muguang",
// "version": "090200",
// "systemVersion": "15.2",
// "networkType": "wifi",
// },
// "code": "1"
// }