Skip to main content

命令数据

1

  • 播放数据

备注:该数据和标准格式不一致

  1. 下发数据
// 该下发数据不是标准结构,显示的是完整的下发数据
{
"method": "update_data",
"methodCode": 1,
"data": {
"data": {
"channelDetail": [
{
"notifyId": 112553,
"notifyTime": "2024-01-09 16:07:17",
"publishTime": "2024-01-09 16:07:17",
"data": {
"id": 1659,
"name": "123快捷发布到设备ccc_11的排期",
"sourceSize": 116935,
"channelSchedulePeriodDispatchInfos": [
{
"id": 3149,
"programGroupPlayMethod": 1,
"playStartTime": "每日 00:00",
"playStartCrontab": "0 0 * * *",
"playEndTime": "每日 23:59",
"playEndCrontab": "59 23 * * *",
"version": 1704787637627,
"type": 1,
"periodType": 1,
"startTime": "1900-01-01 00:00:00",
"endTime": "2051-01-09 23:59:59",
"playDuration": 0,
"playInterval": 0,
"channelPlayProgramGroups": [
{
"id": 3481,
"programId": 4002
}
]
}
],
"programs": [
{
"id": 4002,
"canvasHeight": 1080,
"canvasWidth": 1920,
"canvasBgColor": "#FF000000",
"name": "123",
"remark": "",
"actionScope": "individual",
"programType": "general",
"playDuration": "23:59:59",
"programComponents": [
{
"id": 6040,
"componentParam": {
"res": [
{
"resourceId": 4754,
"size": 116935,
"resourceData": "https://s.pointshow.cn/5kMzh1687245465839.jpg",
"name": "4.jpg",
"fe_guid": "008272f5-5134-d6e6-f539-6d3d2d4fc352",
"_ui_w": 1500,
"time": "00:00:08",
"type": "image",
"_ui_h": 2667,
"resourceExtendData": "https://s.pointshow.cn/5kMzh1687245465839_resize__w_120_h_120.jpg",
"_ui_show": "https://s.pointshow.cn/5kMzh1687245465839.jpg"
}
],
"opts": {
"scaleType": "0",
"totalTime": 8,
"transformer": "Default",
"pageTransformer": "0",
"time": 8
}
},
"thirdPartyParam": {},
"programId": 4002,
"componentId": 2,
"type": "image",
"x": 0,
"y": 0,
"w": 1920,
"h": 1080,
"level": 100,
"componentOtherParam": {},
"bgColor": "#d9898b"
}
]
}
],
"posterData": [],
"posterTemplateData": [],
"level": 2,
"version": 4,
"updateSign": "5b81c50ae3bdfd858b22e68d252aedf8",
"createTime": "2024-01-09 16:07:17",
"resourceInfos": []
}
}
]
},
"type": "channel",
"version": "1"
}
}
  1. 回执数据
// 该回执为完整数据(和通用的格式不一致)
{
"data": [
{
"id": "112553",
"code": 0,
"channelId": "1659",
"version": "4",
"md5": "5b81c50ae3bdfd858b22e68d252aedf8",
"name": "123快捷发布到设备ccc_11的排期",
"type": 1,
"terminalId": "ccc_11"
}
]
}

5

  • 登录
  1. 下发数据
{
"methodCode": 5,
"data": {
terminalCode:"",
sellerId:"",
pointNo:"",
terminalId:"",
pointId:"",
activateSn:"",
token:"",
screenPoint:""
}
}
  1. 回执数据

6

  • 商户配置
  1. 下发数据
{
"config": [
{
tagType:'4',
tagValue:'1'
},{
tagType:'5',
tagValue:'['https://s.poinshow.net/xx1.png','https://s.poinshow.net/xx2.png']'
},{
tagType:'6',
tagValue:'['https://s.poinshow.net/xx1.png','https://s.poinshow.net/xx2.png']'
},{
tagType:'12',
agValue:'1'
},{
tagType:'14',
tagValue:'1'
},{
tagType:'102',
tagValue:'{logo:"",wxQrcodeImg:"",wxQrcodeName:"点秀微信公众号",mobile:"",site:"www.pointshow.cn"}'
}
// ... 配置会不断扩充
]
}
  1. 回执数据
// 该回执为完整数据(和通用的格式不一致)
{
data:[{
id: d.notifyId,
code: 0,
version: d.version,
type: 2,
terminalId: terminalId
}]
}

7

  • 日志模式配置
  1. 下发数据
{
"logType": "1" // 日志类型
}
  1. 回执数据

8

  • 设备配置
  1. 下发数据
// 该回执为完整数据(和通用的格式不一致)
{
"screenAngle": "0", // 设备方向
"sellerId": 165, // 商户id
"code": "qpl_2", // 设备号
"isShowLogo": false, // 水印显示
"activeSn": "316524573547", // 授权码
"terminalId": 22024, // 设备id
"terminalCode": "qpl_2", // 设备号
"pointNo": "qpl1", // 网点号
"useStatus": 1 // 设备状态
}
  1. 回执数据
{
data:[{
id: d.notifyId,
code: 0,
version: d.version,
type: 2,
terminalId: terminalId
}]
}

9

  • 禁用排期

备注:该数据和标准格式不一致

以下显示完整的下发数据

  1. 下发数据
    {
"method": "channel_cancel",
"methodCode": 9,
"data": {
"channelCancelDetal": [
{
"notifyId": 112554,
"notifyTime": "2024-01-09 16:07:29",
"publishTime": "2024-01-09 16:07:29",
"data": 1659
}
]
}
}
  1. 回执数据
// 该回执为完整数据(和通用的格式不一致)
{
"data": [
{
"id": "112553",
"code": 0,
"channelId": "1659",
"version": "4",
"md5": "5b81c50ae3bdfd858b22e68d252aedf8",
"name": "123快捷发布到设备ccc_11的排期",
"type": 2,
"terminalId": "ccc_11"
}
]
}

101

  • 定时开关机
  1. 下发数据
{
"switchConfig": {
enable: true,
powerList: [
{
hour: 09,
minute: 10,
action: 0
}
]
}
}
  1. 回执数据

102

  • 重启
  1. 下发数据

  1. 回执数据

103

  • 关机
  1. 下发数据

  1. 回执数据

104

  • 截图
  1. 下发数据

  1. 回执数据
{
url:'https://s.pointshow.cn/xxx.png'
}

107

  • 重启APP
  1. 下发数据

  1. 回执数据

108

  • 退出APP
  1. 下发数据

  1. 回执数据

109

  • 设置屏幕背光
  1. 下发数据
{
switch:0
}
  1. 回执数据

110

  • 执行shell
  1. 下发数据
{
cmd:'tap 100 100 && tap 200 200'
}
  1. 回执数据
{
result:0,
successMsg:'',
errorMsg:''
}

206

  • 旋转屏幕
  1. 下发数据
{
orientation:0
}
  1. 回执数据
{
angle:0
}

207

  • 上传事件日志
  1. 下发数据

  1. 回执数据
调用API:terminalManage/v2/sys-log-upload

208

  • 获取设备信息
  1. 下发数据

  1. 回执数据
 参考API:v1/terminal-active/upload-terminal-info  的入参数据

301

  • 定向升级APP
  1. 下发数据
{
url:'https://s.pointshow.cn/xxx',
version:'6.0.0.1',
isForce:true
}
  1. 回执数据

302

  • 查询开发日志列表
  1. 下发数据

  1. 回执数据
{
"logType":1,
"debug": {
"name": "debug.txt",
"path": "/data/***/log/debug.txt"
},
"error": {
"name": "error.txt",
"path": "/data/***/log/error.txt"
},
"archive": [
{
"name": "debug.2020-05-07.0.txt",
"path": "/data/***/log/archive/debug.2020-05-07.0.txt",
"type": "file"
}
]
}

303

  • 读取文件
  1. 下发数据
{
path:'/data/xxxx/xxx/xxx/xxx/xxx.txt'
}
  1. 回执数据
{
url:'https://s.pointshow.net/xx.txt'
}

304

  • 下载文件
  1. 下发数据
{
path:'/data/xxxx/xxx/xxx/xxx/xxx.txt'
}
  1. 回执数据
{
url:'https://s.pointshow.net/xx.txt'
}

305

  • 获取本地数据库
  1. 下发数据

  1. 回执数据
{
url:'https://s.pointshow.net/xx.db'
}

306

  • 设置日志开发模式
  1. 下发数据
{
logType:2
}
  1. 回执数据

307

  • 执行sql语句
  1. 下发数据
{
sql:'select * from xxx.tableName',
args:['name','id']
}
  1. 回执数据
    {resultSet[]}

308

  • 清空数据库
  1. 下发数据

  1. 回执数据

309

  • 退出播放
  1. 下发数据

  1. 回执数据

310

  • 退出登录
  1. 下发数据

  1. 回执数据

311

  • 查询登录信息
  1. 下发数据

  1. 回执数据
{
terminalId: '',
param: {
"api": '',
"posX": '',
"posY": '',
"deviceUId": '',
"tag": ''
}
}

312

  • 查询日志模式
  1. 下发数据

  1. 回执数据
{
logType: 1
}

313

  • 清理所有无效资源
  1. 下发数据

  1. 回执数据

314

  • 删除所有排期
  1. 下发数据

  1. 回执数据

315

  • 同步排期
  1. 下发数据

  1. 回执数据

316

  • 查看APP是否在前台
  1. 下发数据

  1. 回执数据
{
foreground: true
}

317

  • 查看是否在播放节目
  1. 下发数据

  1. 回执数据
{
running: true
}

319

  • 清理日志
  1. 下发数据

  1. 回执数据

320

  • 切换浏览器内核
  1. 下发数据
{
browser:1
}
  1. 回执数据

321

  • 上传本地事件
  1. 下发数据

  1. 回执数据
{
total:1,
content:[]
}

322

  • 查看本地排期与节目
  1. 下发数据

  1. 回执数据
{
channel: {
all: 1,
ready: 1
},
schedule: {
all: 1,
ready: 1
},
program: {
all: 1,
ready: 1
},
data:[]
}

323

  • OFFICE远程控制
  1. 下发数据
{
officeType:'prev',
isAutoPlay:true
}
  1. 回执数据

324

  • 定向升级APP
  1. 下发数据
{
url:'https://s.pointshow.cn/xxx',
version:'6.0.0.1',
isForce:true
}
  1. 回执数据

325

  • 抖音控制
  1. 下发数据
{
type:1,
uri:'https://www.douyin.com/xxx'
}
  1. 回执数据

326

  • 获取应用信息
  1. 下发数据

  1. 回执数据
{
fileList:[
{
name:'',
path:'',
type:''
}
]
}

327

  • 查看app是否在线
  1. 下发数据

  1. 回执数据
{
online: 1,
network: {
type: 1,
name: '有线连接',
ip: '192.168.1.1'
}
}

328

  • 根据oss获取本地路径
  1. 下发数据
{
urlList:['https://s.pointshow.net/xxx']
}
  1. 回执数据
{
data:[]
}

329

  • 记忆升级APP
  1. 下发数据
{
url:'https://s.pointshow.cn/xxx',
version:'6.0.0.1',
isForce:true
}
  1. 回执数据

330

  • 切换图片模式
  1. 下发数据
{
mode:0
}
  1. 回执数据

331

  • 切换播放器模式
  1. 下发数据
{
mode:0
}
  1. 回执数据

332

  • 设置API请求间隔时长
  1. 下发数据
{
timeout:30
}
  1. 回执数据

333

  • 获取API请求间隔时长
  1. 下发数据

  1. 回执数据
{
timeout:30
}

334

  • 设置请求服务端API根地址
  1. 下发数据
{
address:'https://www.pointshow.net/api/'
}
  1. 回执数据

335

  • 获取请求服务端API根地址
  1. 下发数据

  1. 回执数据
{
address:''
}

336

  • 输入文本
  1. 下发数据
{
text:'一段文字测试'
}
  1. 回执数据

337

  • 获取定时开关机信息
  1. 下发数据

  1. 回执数据
{
enable:false,
powerList:[
{hour:1,minute:2,action:1}
]
}

338

  • 获取播放数据来源
  1. 下发数据

  1. 回执数据
{dataSource:1}

339

  • 设置播放数据来源
  1. 下发数据
{
dataSource: 1
}
  1. 回执数据