|
- String APP_KEY = "2f39d871a38a4841aab3be3837e39cf4";
- 下面很多地方都用到了APP_KEY,
- sign = sha256(请求数据排序拼接 + APP_KEY) //如果需要做其它请求,sign也是一样的构造方式
- pushToken 是固定值 0000846ff6c
- 本次注册设置的密码是 a123456
- 1、发码
- POST https://iot4.midea.com.cn/v1/user/mobile/verify/get HTTP/1.1
- Connection: Keep-Alive
- Content-Type: application/x-www-form-urlencoded
- User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
- Host: iot4.midea.com.cn
- Accept-Encoding: gzip
- Content-Length: 151
- appId=1000&format=2&mobile=18184743780&sign=a32bcf0c046e0e1711b69b54293a3145169f3b3d920930af6a530d3546a1ea3f&stamp=20190812020012&language=zh_CN&type=1
- --->>sign:
- sha256 明文:
- /v1/user/mobile/verify/getappId=1000&format=2&language=zh_CN&mobile=18184743780&stamp=20190812020012&type=12f39d871a38a4841aab3be3837e39cf4
- sha256 密文:
- a32bcf0c046e0e1711b69b54293a3145169f3b3d920930af6a530d3546a1ea3f
- HTTP/1.1 200 OK
- Server: openresty
- Date: Sun, 11 Aug 2019 18:00:14 GMT
- Content-Type: application/json;charset=UTF-8
- Connection: keep-alive
- Access-Control-Allow-Origin: http://qrcode.midea.com
- Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
- Vary: Accept-Encoding
- Content-Length: 26
- {"msg":"","errorCode":"0"}
- 2、注册
- POST https://iot4.midea.com.cn/v1/user/mobile/register HTTP/1.1
- Connection: Keep-Alive
- Content-Type: application/x-www-form-urlencoded
- User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
- Host: iot4.midea.com.cn
- Accept-Encoding: gzip
- Content-Length: 319
- verifyCode=695509&src=0&mobile=18184743780&format=2&sign=dab0e79b3019d0ac4734ab91a4792c814619fb22607e6cd4ee3c9c702c86eb33&stamp=20190812020109&language=zh_CN&password=20f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea&needActive=true&appId=1000&nickname=18184743780&iampwd=d477887b0636e5d87f79cc25c99d7dc9
- --->>iampwd = md5(md5(password))
- md5("a123456") = dc483e80a7a0bd9ef71d8cf973673924
- md5("dc483e80a7a0bd9ef71d8cf973673924") = d477887b0636e5d87f79cc25c99d7dc9
- --->>password = sha256(password)
- sha256("a123456") = 20f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea
- --->>sign:
- sha256 明文:
- /v1/user/mobile/registerappId=1000&format=2&iampwd=d477887b0636e5d87f79cc25c99d7dc9&language=zh_CN&mobile=18184743780&needActive=true&nickname=18184743780&password=20f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea&src=0&stamp=20190812020109&verifyCode=6955092f39d871a38a4841aab3be3837e39cf4
- sha256 密文:
- dab0e79b3019d0ac4734ab91a4792c814619fb22607e6cd4ee3c9c702c86eb33
- HTTP/1.1 200 OK
- Server: openresty
- Date: Sun, 11 Aug 2019 18:01:10 GMT
- Content-Type: application/json;charset=UTF-8
- Connection: keep-alive
- Vary: Accept-Encoding
- Content-Length: 26
- {"msg":"","errorCode":"0"}
- 3、获取loginId
- POST https://iot4.midea.com.cn/v1/user/login/id/get HTTP/1.1
- Connection: Keep-Alive
- Content-Type: application/x-www-form-urlencoded
- User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
- Host: iot4.midea.com.cn
- Accept-Encoding: gzip
- Content-Length: 169
- loginAccount=18184743780&clientType=1&src=0&appId=1000&format=2&sign=f67df54d85b1945c7848ad4d3b0f4349a50e8ebf075191a75aaf76909ab7f209&stamp=20190812020110&language=zh_CN
- --->>sign:
- sha256 明文:
- /v1/user/login/id/getappId=1000&clientType=1&format=2&language=zh_CN&loginAccount=18184743780&src=0&stamp=201908120201102f39d871a38a4841aab3be3837e39cf4
- sha256 密文:
- f67df54d85b1945c7848ad4d3b0f4349a50e8ebf075191a75aaf76909ab7f209
- HTTP/1.1 200 OK
- Server: openresty
- Date: Sun, 11 Aug 2019 18:01:10 GMT
- Content-Type: application/json;charset=UTF-8
- Connection: keep-alive
- Vary: Accept-Encoding
- Content-Length: 82
- {"msg":"","result":{"loginId":"66d5ed48f3c141069088bc98ffd4d661"},"errorCode":"0"}
- 4、登陆
- POST https://iot4.midea.com.cn/v1/user/login HTTP/1.1
- Connection: Keep-Alive
- Content-Type: application/x-www-form-urlencoded
- User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
- Host: iot4.midea.com.cn
- Accept-Encoding: gzip
- Content-Length: 398
- loginAccount=18184743780&src=0&format=2&sign=37698ee3bb708c4c4049d2715b6a1ec6167c2968244db0a4937a1da30310eca7&stamp=20190812020110&language=zh_CN&pushToken=0000846ff6c&pushType=1&password=95966b23aea28d1b7049cf50f5e111b6e8155ac85a7e68c4c6902451481967f1&phoneModel=Nexus+5&clientType=1&appId=1000&appVNum=3.8.1&phoneSysVNum=6.0&iampwd=e611f36d4c83f2baa4f3e2eb4e86d7c5635c2037a5de21c7ef671906fecdc615
- --->>iampwd = sha256(loginId + md5(md5(password)) + "2f39d871a38a4841aab3be3837e39cf4")
- 本次请求iampwd构造过程:
- md5("a123456") = dc483e80a7a0bd9ef71d8cf973673924
- md5("dc483e80a7a0bd9ef71d8cf973673924") = d477887b0636e5d87f79cc25c99d7dc9
- sha256("66d5ed48f3c141069088bc98ffd4d661d477887b0636e5d87f79cc25c99d7dc92f39d871a38a4841aab3be3837e39cf4") = e611f36d4c83f2baa4f3e2eb4e86d7c5635c2037a5de21c7ef671906fecdc615
- --->>password = sha256(loginId + sha256(password) + "2f39d871a38a4841aab3be3837e39cf4")
- 本次password构造过程:
- sha256("a123456") = 20f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea
- sha256("66d5ed48f3c141069088bc98ffd4d66120f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea2f39d871a38a4841aab3be3837e39cf4") = 95966b23aea28d1b7049cf50f5e111b6e8155ac85a7e68c4c6902451481967f1
- --->>sign:
- sha256 明文:
- /v1/user/loginappId=1000&appVNum=3.8.1&clientType=1&format=2&iampwd=e611f36d4c83f2baa4f3e2eb4e86d7c5635c2037a5de21c7ef671906fecdc615&language=zh_CN&loginAccount=18184743780&password=95966b23aea28d1b7049cf50f5e111b6e8155ac85a7e68c4c6902451481967f1&phoneModel=Nexus 5&phoneSysVNum=6.0&pushToken=0000846ff6c&pushType=1&src=0&stamp=201908120201102f39d871a38a4841aab3be3837e39cf4
- sha256 密文:
- 37698ee3bb708c4c4049d2715b6a1ec6167c2968244db0a4937a1da30310eca7
- HTTP/1.1 200 OK
- Server: openresty
- Date: Sun, 11 Aug 2019 18:01:11 GMT
- Content-Type: application/json;charset=UTF-8
- Connection: keep-alive
- Vary: Accept-Encoding
- Content-Length: 244
- {"msg":"","result":{"nickname":"18184743780","sessionId":"10c8eb2b90d445f88929e66eacc3777320190812020110987","accessToken":"c7f2dbcd4bb44c9ee395c74a0eefdd9173e9040221dc53e61704362c9fd5c910","userId":"14106918","versionCode":""},"errorCode":"0"}
- 5、
- POST https://iot4.midea.com.cn/v1/user/info/get HTTP/1.1
- Connection: Keep-Alive
- Content-Type: application/x-www-form-urlencoded
- User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
- Host: iot4.midea.com.cn
- Accept-Encoding: gzip
- Content-Length: 180
- src=0&format=2&sign=637c1176e9145e804dbd7ace6de01df7c24a73ebd2f3057413d6f951c9f74538&stamp=20190812020111&language=zh_CN&sessionId=10c8eb2b90d445f88929e66eacc3777320190812020110987
- --->>sign:
- sha256 明文:
- /v1/user/info/getformat=2&language=zh_CN&sessionId=10c8eb2b90d445f88929e66eacc3777320190812020110987&src=0&stamp=201908120201112f39d871a38a4841aab3be3837e39cf4
- sha256 密文:
- 637c1176e9145e804dbd7ace6de01df7c24a73ebd2f3057413d6f951c9f74538
- HTTP/1.1 200 OK
- Server: openresty
- Date: Sun, 11 Aug 2019 18:01:11 GMT
- Content-Type: application/json;charset=UTF-8
- Connection: keep-alive
- Vary: Accept-Encoding
- Content-Length: 266
- {"msg":"","result":{"uid":"090288b5a4354c5f93241561c1184e44","address":"","profilePicUrl":"","phone":"","registerTime":"2019-08-12 02:01:09","signature":"","sex":"","nickname":"18184743780","mobile":"18184743780","id":"14106918","email":"","age":""},"errorCode":"0"}
- 6、
- POST https://health.midea.com/v2/app/open/push/token/save HTTP/1.1
- charset: UTF-8
- appId: 1004
- stamp: 20190812020112
- sign: 8d53982152d1b2369997dc63786fa8e81e97e2a5de153a82b0d5843d9e84d040
- Content-Type: application/x-www-form-urlencoded
- Content-Length: 54
- Host: health.midea.com
- Connection: Keep-Alive
- Accept-Encoding: gzip
- User-Agent: okhttp/3.6.0
- account=18184743780&pushToken=0000846ff6c&uid=14106918
- --->>sign = sha256("")
- 8d53982152d1b2369997dc63786fa8e81e97e2a5de153a82b0d5843d9e84d040
- HTTP/1.1 200 OK
- Server: nginx
- Date: Sun, 11 Aug 2019 18:01:14 GMT
- Content-Type: application/json;charset=UTF-8
- Connection: keep-alive
- Access-Control-Allow-Origin: *
- Access-Control-Allow-Methods: POST
- Access-Control-Allow-Headers: x-requested-with,content-type,appId,token,stamp,sign,HEAD_KEY_APP_SRC,HEAD_KEY_APP_PLATFORM,HEAD_KEY_APP_AppVersion
- Content-Length: 47
- {"code":0,"enMsg":"","zhMsg":"","detailMsg":""}
复制代码 接单QQ:46660816
|
评分
-
查看全部评分
|