计算京东sign需要7个参数,通过抓包工具Fiddler可以抓到
我已封装成接口,使用api工具可以获取到postapi
请求地址:
https://q81235516j.zicp.fun/api
请求方式:post/get
请求参数:
method=jd.app.sign&token=7cacd4fc610c5907a3763d4fce72dd01&functionId=getAddressByPin&body={"isLastOrder":true,"latitude":39.916411,"longitude":116.410249,"settlementVersionCode":1330}&uuid=8b03fd166286&client=android&clientVersion=12.3.5&st=1709470282075&sv=111
token并不是京东的参数,而是调用接口的鉴权密码,这里可以使用我的
不同语言的获取示例:
java
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://q81235516j.zicp.fun/api?method=jd.app.sign&token=7cacd4fc610c5907a3763d4fce72dd01&functionId=getAddressByPin&body={"isLastOrder":true,"latitude":39.916411,"longitude":116.410249,"settlementVersionCode":1330}&uuid=8b03fd166286&client=android&clientVersion=12.3.5&st=1709470282075&sv=111")
.get()
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
go:
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://q81235516j.zicp.fun/api?method=jd.app.sign&token=7cacd4fc610c5907a3763d4fce72dd01&functionId=getAddressByPin&body={"isLastOrder":true,"latitude":39.916411,"longitude":116.410249,"settlementVersionCode":1330}&uuid=8b03fd166286&client=android&clientVersion=12.3.5&st=1709470282075&sv=111"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
php
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://q81235516j.zicp.fun/api?method=jd.app.sign&token=7cacd4fc610c5907a3763d4fce72dd01&functionId=getAddressByPin&body={"isLastOrder":true,"latitude":39.916411,"longitude":116.410249,"settlementVersionCode":1330}&uuid=8b03fd166286&client=android&clientVersion=12.3.5&st=1709470282075&sv=111",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
python
import requests
url = "https://q81235516j.zicp.fun/api"
querystring = {"method":"jd.app.sign","token":"7cacd4fc610c5907a3763d4fce72dd01","functionId":"getAddressByPin","body":"{\"isLastOrder\":true,\"latitude\":39.916411,\"longitude\":116.410249,\"settlementVersionCode\":1330}","uuid":"8b03fd166286","client":"android","clientVersion":"12.3.5","st":"1709470282075","sv":"111"}
headers = {"content-type": "application/json"}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)
另外还有其他算法:
京东.app.mck (appcookie转mcookie)2024-03-04 19:13
京东.app.login (登录账号)2024-03-04 19:13
京东.app.reg (注册账号)2024-03-04 19:13
京东.app.发送请求2024-03-10 21:47
京东.app.sign2024-03-05 17:56
京东.app.body.cipher.enc2024-03-03 23:02
京东.app.body.cipher.dec2024-03-03 23:02
京东.app.uuid2024-03-03 23:01
京东.app.paysign2024-03-03 23:01
京东.app.eid2024-03-03 23:00
京东.app.jec2024-03-05 02:43
京东.app.jeh2024-03-05 03:02
京东.app.jdgs2024-03-03 23:00
京东.app.sdktk2024-03-03 22:59
京东.app.rechargeNumberenc2024-03-04 04:58
京东.app.rechargeNumberdec2024-03-04 04:57
京东.app.encStr2024-03-04 04:26
京东.app.addressenc2024-03-04 04:57
京东.app.addressdec2024-03-04 04:57
京东M
京东.m.jstk2024-03-03 23:04
京东.m.h5st2024-03-04 03:53
京东.m.fp
参考地址:https://console-docs.apipost.cn/preview/9e8b4251f6050d95/21573eda432809f0点我打开文档