Closed lemisky closed 1 year ago
图片来自群友
web 端来源 https://log.mmstat.com/eg.js 此信息来自交流群群友
原理:根据浏览器请求携带的信息(一些 header 啥的)生成一个 etag(x-device-id)
移动端 是同 device-id 进行 sha256 取得
aligo 暂时采用 device-id sha256 方式
x-device-id 任意,唯一即可
web 端来源 https://log.mmstat.com/eg.js 此信息来自交流群群友
原理:根据浏览器请求携带的信息(一些 header 啥的)生成一个 etag(x-device-id)
移动端 是同 device-id 进行 sha256 取得
aligo 暂时采用 device-id sha256 方式
aligo 获取的 device-id 与扫码的移动端设备 id 一致,如果在多个地方登录,device-id 也是一样的,这样势必产生干扰,
暂定用随机 uuid 吧
x-signature 生成流程
r = "".concat(this.config.appId, ":").concat(this.config.deviceId, ":").concat(this.config.userId, ":").concat(n),