每个仓库设置了appId和secretKey,接口调用时需要在接口的header里增加timestamp,appId和signature

字段

类型

备注

appId

String

机器的appId

timestamp

Long

时间戳:单位毫秒, 当前时间±5分钟

signature

String

upper(md5({secretKey}{timestamp}))


wms校验timestamp与当前时间是否在5分钟误差范围内,然后根据appId找到对应的仓库和设置好的secretKey,对签名signature进行校验,校验不一致则接口报错。