Skip to content

8. 批量补货(一键补货)

TIP

统一推送主题:/server/app

请求示例

json
{
  "timestamp": "1748330699",
  "machine_id": "000",
  "method": "client.product.restock",
  "sign": "E8B8A32274EA1EA14A2348A546C6AB98",
  "client_id": "4506173",
  "product_ids": "[\"1\",\"2\",\"3\"]",
  "operation": "1",
  "status": "0"
}

参数说明

字段名默认值是否必须描述
timestamp-当前时间戳(秒级)
machine_id-设备 id(主键)
methodclient.product.restockMQTT 方法名
product_ids[]产品 id 数组,JSON 数组字符串
operation11 上架,0 下架
sign-签名字符串
client_id-设备编码,即 machine_no
status0处理状态,默认:0

💡 如果 product_ids 是空数组(JSON转义后)

  • 服务端将会查询当前设备id名下已设置商品的所有id。
  • 否则使用指定的id数组。

© All rights reserved. 广州鼎商金属制品有限公司