https://www.51cow.cn:7715/api/GetRecordFileList
服务器地址:网络设置-服务器设置 执法仪控制 mcs执法仪启动录像、关闭录像
acc :PC ,mcs8@666
02820,123456 /usr/local/mcs8 dbServer下的appsettings.json:normRecordSaveDays 8.130.17.8,root,Zhuz1898
mcs server :service mcs8 restart
new url:www.51cow.cn 接口明细
Header:token
body
token:设备账号登录token,对应接口,api/login
method:“startRecord”,开启录像,“stopRecord”,停止录像
devId:设备账号
peopleNo:停止录像,不传
workNO:停止录像,不传
其他参数为固定值 保养单列表 移动端
接口:getBigupkeepListAPP
url:https
参数
(select ifnull(device,0) from user
where empId = ? ) isVideoBtnShow, # 录制视屏按钮
ifnull((select location from video where upkeepId =buk.id),'') videoPath, # 录制地址
if((select id from video where upkeepId =buk.id) is null,'未录制','已录制') videoTxt, # 录制状态
(select deviceId from device_information where empId = ?) deviceId,# 设备id
(select password
from device_information where empId = ?) pwd, #密码
(select uId from device_information where empId = ?) uId, # uid
ifnull((select DATE_FORMAT(createTime,'%Y-%m-%d') from video where upkeepId =buk.id),'') videoTime,
videoPath:视频文件路径,video.location,count=6
videoTxt:录制状态, video is not null
isVideoBtnShow:是否显示录像按钮,user.device,目前都是空,前端没有添加的入口
uid(pcid):服务器账号,device_information.uid;count=1
deviceId:仪器账号,可在仪器上登录,device_information.deviceId
pwd:仪器账号密码,device_information.password Pc
接口:upkeepChargDone
参数:statue,orderStatue,empId,id 视频文件路径保存
接口: addDeviceVideo 可用
url:https://tmrwatch.cn:8082/authdata/ExecDataByConfig 执法仪账号 绑定
接口:addDeviceInformation
参数:empId,uId,deviceId,pwd 更新绑定
接口:updateDeviceInformation
参数:empId,deviceId 添加录像权限
接口:updateUserDevice
参数:empId
updateUser
{"code":200,"data":"Error 1366: Incorrect integer value: '[]' for column eq
.user
.maintenancePerson
at row 1","msg":"fail"}
更新用户 url:ExecDataByConfig
checkDeviceId
addDeviceInformation
updateUserDevice url:PostDataByName
updateUser
updateDeviceInformation
url :https://tmrwatch.cn:8082/authdata/mcs/files method:post param 注意:sessionId,首字母,可以改成小写
{
"sessionId": "7eea4610d4f1dcc572b7351f5a5fdef131571842484b03f05fa8e5a90486f227680272d2e47d7a98738b32473e0dffb348bd1b0273079c67d5ee3d90050d78c9",
"St": "2021-01-01",
"et": "2023-12-28",
"Did": "apptest2",
"ft": "3",
"lt": "-1",
"key": "",
"page": "1",
"pagesize": "25",
"wno": ""
}
{
"method": "` + method + `",
"data": {
"devId": "apptest2",
"peopleNo": 2443,
"workNo": 467,
"storType": 0
}
}
PostDataByName updateDeviceInformation updateUser
ExecDataByConfig 缺少更新 checkDeviceId:查询 addDeviceInformation:更新 updateUserDevice:权限更新
{"name":"getBigupkeepList","page":1,"offset":1,"pagecount":10,"returntype":"Map", "parammaps":{"inputDatetime":"","upkeepCode":"BY29220727005","eqName":"","eqCode":"","departmentId":"","statue":"","pastureName":"现代牧业","loginId":"3","menu":"Maintain","SHStatue":"","logindeptId":"20","loginpastureId":"18","startTime":"","stopTime":""}}
{"name":"getBigupkeepListAPP","offset":1,"pagecount":10,"parammaps":{"loginId":3206,"loginpastureId":367,"statue":2}}
00363
{"name":"getuserallL","offset":1,"pagecount":10,"returntype":"Map","parammaps":{"pastureId":"18","empCode":"","empname":""}}