2. 同步时间

描述:

同步设备的时间。

请求说明:

协议 方法 PATH
HTTPS POST /openApi/common/syncTime

Body参数:

参数 类型 必填 说明
appId String appId
expires String 过期时间
sign String 签名
deviceNo String 设备编号
cmd String 固定值:syncTime
data String 时间信息
- time String 时间,例:2025-12-12 00:00:00

返回参数:

参数 类型 必填 说明
code int 响应状态码
msg String 响应消息
appId String appId
expires String 过期时间
sign String 签名
deviceNo String 设备编号
cmd String 固定值:syncTime
data String 空字符串,固定值:””

请求示例:

{"appId":"ym3b7f242fc0814489","expires":"1739583239","deviceNo": "123456789-987654321","sign":"36f392b389e945b5c7ca8baa36fae53b","cmd":"syncTime","data":"{\"time\":\"2026-01-06 11:26:00\"}"}

返回示例:

{
  "code": 0,
  "msg": "操作成功",
  "appId": "ymfaf99a8af3ec4b2e",
  "expires": "1767670648",
  "sign": "b686660418e667884b2e904d46c34983",
  "deviceNo": "123456789-987654321",
  "cmd": "syncTime",
  "data": ""
}
作者:yrh  创建时间:2026-06-06 09:47
最后编辑:yrh  更新时间:2026-06-06 09:49