|
POST https://app-api.jiedianr.cn/miss/code/send HTTP/1.1
charset: UTF-8
device: ba506f63-55bb-4472-8ed6-52bfa4d73c30
Content-Type: application/json; charset=utf-8
Content-Length: 155
Host: app-api.jiedianr.cn
Connection: Keep-Alive
Accept-Encoding: gzip
User-Agent: okhttp/3.2.0
{"body":{"mobile":"13299208487","smstype":"1"},"rand":"-419126580","sign":"8BD32B089FA79975E17DC0689448629A348D8703","timestap":"1555144811186","token":""}
String rand = String.valueOf(new Random().nextInt()); //随机数
String timestap = String.valueOf(System.currentTimeMillis()); //时间戳
sign = sha1 (rand + timestap)
|
|