https://open.work.weixin.qq.com/connect/hardware?sn=xxxxx×tamp=1500133456&nonce=1234&signature=fdsaoiurewkjjaaa&type=qrcode
参数名 | 是否必须 | 类型 | 描述 |
---|---|---|---|
sn | 是 | String | 设备序列号 |
timestamp | 是 | Uint32 | UTC时间戳,需要每30分钟变更1次(建议10分钟刷新1次),企业微信会检查该时间戳是否在30分钟有效期内,过期会报二维码失效。 |
nonce | 是 | Uint64 | 随机数 |
signature | 是 | String(40) | 设备签名,sha1(sort(sn、SecretNo、timestamp、nonce、type))。sort的含义是将参数值按照字母字典排序,然后从 小到大拼接成一个字符串。SecretNo是由企业微信为每个设备生成的密钥,供应商可将其固化到设备上。 |
type | 是 | String | 此处固定为qrcode |
https://open.work.weixin.qq.com/connect/hardware?hw_code=xxxx