本篇文章仅供学习讨论。
文章中涉及到的代码、实例,仅是个人日常学习研究的部分成果。
如有不当,请联系删除。
我博客里面也不止发布了一篇关于阿里系签名的文章了,但成体系、能应用的功能一直没有开发出来。
虽然一大部分原因是因为本人懒,有空的时候就研究下,没空了就直接搁置。
本质上还是去学习人家的算法和架构,最终学习到的东西可以应用到自己开发的产品上。
最近把闲鱼/淘宝/大麦的应用都放到一起研究了下,终于,在算法研究的长征路上,又向前走了一小步——在unidbg的基础上实现了相关算法。但知道的越多,发现未知的越多。在设备层面、基础参数层面,发现阿里不愧是大厂,领先这些小程序员们一整个大气层。
接下来又是传统节目——炫技环节:
请求签名部分
请求数据部分
再展示一部分请求到的数据(也就是很多条数据的其中一条):
{
"data": {
"item": {
"main": {
"clickParam": {
"arg1": "Item",
"args": {
"picWidth": "164.0",
"zhimaOffline": "false",
"item_type": "goods",
"disableHierarchicalSort": "0",
"searchProjectLayerInfo": "DoubleShade_21|DEFAULT_26|202305152329_3090_1",
"pageSize": "10",
"type": "1",
"q_type": "0",
"search_from_page": "xyHome",
"tagname": "全新/包邮",
"wantNum": "0",
"id": "788636250267",
"tag": "new/freeship",
"keyword": "iphone",
"scm": "1007.32845.290827.0",
"seller_id": "GjU2ReiYTXiaeaRUzzrLCQ==",
"publishTime": "1714139629000",
"search_tab_from": "SEARCH_TAB_MAIN",
"picHeight": "123.0",
"cCatId": "126862528",
"biz_type": "item",
"tbCatId": "1512",
"index": "0",
"spm": "a2170.8011571.1.0",
"catId": "50025386",
"original_q": "iphone",
"p_type": "2",
"page": "1",
"position": "0",
"rn": "7403a9b4d78f5a8665effe56a1b9c058",
"tcDistance": "0.0",
"abid": "290827",
"singleControl": "false",
"cpvNavWlTbCatId": "1512",
"layerInfo": "22845#0#290827#5_22845#10269#446628#67_22845#12929#480547#54_22845#26994#481509#6_22845#12961#449492#47_22845#26899#481719#11_22845#25306#477353#13_22845#12936#453303#2_22845#12926#482457#52_22845#12928#482555#57",
"item_id": "788636250267",
"oldZhima": "false",
"unShowLabelParams": "{}",
"userIsUseFishShopCard": "false",
"bucketid": "26",
"card_type": "idlefish_search_item_new_tags",
"search_id": "a5507830d9f36fc69894e2684c958bc9",
"idle_mount_tai_task_abs": "0:T:1;1192:T:0;768:T:0;793:T:0;130:T:0;343:T:0;467:T:0;573:T:0;1222:T:0;123:T:0;350:T:0;1209:C:0;212:T:0;505:T:0;1193:T:0;354:C:0;353:T:0;892:T:0;972:T:0;193:T:0;370:T:0;-4:C:1;340:T:0;359:T:0;363:T:0;536:T:0;169:T:0;788:T:0;487:T:0;199:T:0;223:T:0;792:T:0;598:T:0;1134:T:0;126:T:0;517:T:0;542:T:0;470:T:0;1229:C:0;356:T:0;593:T:0;-10:T:1;551:T:0;789:T:0;194:T:0;1210:C:0;592:T:0;543:T:0;225:T:0;552:T:0;500:T:0;226:T:0;366:T:0;933:T:0;337:T:0;1156:T:0;1173:T:0;558:T:0;341:T:0;1075:T:0;514:T:0;1190:T:0;244:T:0;893:T:0;969:T:0;227:T:0;1211:T:0;1142:T:0;1185:T:0;361:T:0;368:T:0;1228:C:0;766:T:0;1205:T:0;342:T:0;797:T:0;466:T:0;533:T:0",
"q": "iphone",
"CoinPay_Morediscount": "false",
"isFromAISuggestion": "false",
"tai_match_type": "0",
"HideUserInfo": "false",
"serviceUtParams": "[{\"arg1\":\"4_tag_r2_36\",\"args\":{\"LabelSystem2.0\":\"1\",\"content\":\"全新未拆封\"}},{\"arg1\":\"4_tag_r2_38\",\"args\":{\"LabelSystem2.0\":\"1\",\"content\":\"Apple/苹果\"}},{\"arg1\":\"4_tag_r2_34\",\"args\":{\"LabelSystem2.0\":\"1\",\"content\":\"512GB\"}},{\"arg1\":\"4_tag_r3_9\",\"args\":{\"LabelSystem2.0\":\"1\",\"content\":\"12人想要\"}},{\"arg1\":\"4_tag_r4_750\",\"args\":{\"LabelSystem2.0\":\"1\",\"content\":\"百分百好评\"}},{\"arg1\":\"4_tag_r1_13\",\"args\":{\"LabelSystem2.0\":\"1\",\"content\":\"freeShippingIcon\"}}]",
"labelBucketId": "9",
"zhimaLogBucketId": "9"
},
"page": "Page_xySearchResult"
},
"exContent": {
"area": "河南",
"detailParams": {
"picWidth": "1440",
"itemId": "788636250267",
"itemType": "detailCommonBuy",
"picHeight": "1080",
"userNick": "诚信第一",
"soldPrice": "1306",
"isVideo": "false",
"title": "女生自用闲置苹果iPhone 14pro灵动岛暗紫色国行 512G 成色全新 全网通 ,双卡双待 纯原装,无拆无修,没有磕碰,没有暗病,手机所有功能都正常的使用,面容好用。七天无理由退换货,全国联保一年!"
},
"dislikeFeedback": {
"clickParam": {
"arg1": "DisLikePanel",
"args": {
"itemId": "788636250267",
"bizType": "item",
"picHeight": "123.0",
"picWicth": "164.0",
"itemPosition": "1",
"keyword": "iphone",
"referPage": "Page_xySearchResult_FindSimilar"
},
"page": "Page_xySearchResult"
},
"dislikeStyle": "dislikeStyle202304",
"itemPicUrl": "http://img.alicdn.com/bao/uploaded/i3/O1CN01jHshLo1oNbdtg6cmF_!!0-fleamarket.jpg",
"moreList": [
{
"apiParams": {
"actType": "fakePrice",
"extra": "GjU2ReiYTXiaeaRUzzrLCQ==",
"queryWord": "iphone",
"scene": "Page_xySearchResult",
"targetId": "788636250267",
"targetIndex": "1",
"targetType": "item"
},
"clickParam": {
"arg1": "DisLikeItemMore",
"args": {
"spm": "a2170.8011571.DisLikeItemMore.1",
"itemId": "788636250267",
"bizType": "item",
"picHeight": "123.0",
"picWicth": "164.0",
"name": "虚假价格",
"index": "1",
"actType": "fakePrice",
"itemPosition": "1",
"keyword": "iphone"
},
"page": "Page_xySearchResult"
},
"icon": "https://img.alicdn.com/imgextra/i4/O1CN01AeEtqS1cxXCmlX2IC_!!6000000003667-2-tps-64-64.png",
"index": "1",
"text": "虚假价格"
},
{
"apiParams": {
"actType": "dislikeImage",
"extra": "GjU2ReiYTXiaeaRUzzrLCQ==",
"queryWord": "iphone",
"scene": "Page_xySearchResult",
"targetId": "788636250267",
"targetIndex": "1",
"targetType": "item"
},
"clickParam": {
"arg1": "DisLikeItemMore",
"args": {
"spm": "a2170.8011571.DisLikeItemMore.2",
"itemId": "788636250267",
"bizType": "item",
"picHeight": "123.0",
"picWicth": "164.0",
"name": "引起不适",
"index": "2",
"actType": "dislikeImage",
"itemPosition": "1",
"keyword": "iphone"
},
"page": "Page_xySearchResult"
},
"icon": "https://img.alicdn.com/imgextra/i3/O1CN01o871mh1p61wNfFLOb_!!6000000005310-2-tps-64-64.png",
"index": "2",
"text": "引起不适"
},
{
"apiParams": {
"actType": "fakeItem",
"extra": "GjU2ReiYTXiaeaRUzzrLCQ==",
"queryWord": "iphone",
"scene": "Page_xySearchResult",
"targetId": "788636250267",
"targetIndex": "1",
"targetType": "item"
},
"clickParam": {
"arg1": "DisLikeItemMore",
"args": {
"spm": "a2170.8011571.DisLikeItemMore.3",
"itemId": "788636250267",
"bizType": "item",
"picHeight": "123.0",
"picWicth": "164.0",
"name": "疑似假货",
"index": "3",
"actType": "fakeItem",
"itemPosition": "1",
"keyword": "iphone"
},
"page": "Page_xySearchResult"
},
"icon": "https://img.alicdn.com/imgextra/i1/O1CN01bSL1jD1GvJk2haDqH_!!6000000000684-2-tps-64-64.png",
"index": "3",
"text": "疑似假货"
},
{
"apiParams": {
"actType": "alreadyBuy",
"extra": "GjU2ReiYTXiaeaRUzzrLCQ==",
"queryWord": "iphone",
"scene": "Page_xySearchResult",
"targetId": "788636250267",
"targetIndex": "1",
"targetType": "item"
},
"clickParam": {
"arg1": "DisLikeItemMore",
"args": {
"spm": "a2170.8011571.DisLikeItemMore.4",
"itemId": "788636250267",
"bizType": "item",
"picHeight": "123.0",
"picWicth": "164.0",
"name": "已经买过",
"index": "4",
"actType": "alreadyBuy",
"itemPosition": "1",
"keyword": "iphone"
},
"page": "Page_xySearchResult"
},
"icon": "https://img.alicdn.com/imgextra/i3/O1CN01ahXcOL1b152UnCUr1_!!6000000003404-2-tps-64-64.png",
"index": "4",
"text": "已经买过"
}
],
"showList": [
{
"apiParams": {
"actType": "dislikeGoods",
"extra": "GjU2ReiYTXiaeaRUzzrLCQ==",
"queryWord": "iphone",
"scene": "Page_xySearchResult",
"targetId": "788636250267",
"targetIndex": "1",
"targetType": "item"
},
"clickParam": {
"arg1": "DisLikeItemFirst",
"args": {
"spm": "a2170.8011571.DisLikeItemFirst.1",
"itemId": "788636250267",
"bizType": "item",
"picHeight": "123.0",
"picWicth": "164.0",
"name": "不喜欢该商品",
"index": "1",
"actType": "dislikeGoods",
"itemPosition": "1",
"keyword": "iphone"
},
"page": "Page_xySearchResult"
},
"icon": "https://gw.alicdn.com/imgextra/i2/O1CN01nEHAUr1bTw528ELSv_!!6000000003467-2-tps-96-96.png",
"index": "1",
"text": "不喜欢该商品"
},
{
"apiParams": {
"actType": "dislikeAuthor",
"extra": "GjU2ReiYTXiaeaRUzzrLCQ==",
"queryWord": "iphone",
"scene": "Page_xySearchResult",
"targetId": "788636250267",
"targetIndex": "1",
"targetType": "item"
},
"clickParam": {
"arg1": "DisLikeItemFirst",
"args": {
"spm": "a2170.8011571.DisLikeItemFirst.2",
"itemId": "788636250267",
"bizType": "item",
"picHeight": "123.0",
"picWicth": "164.0",
"name": "不喜欢该卖家",
"index": "2",
"actType": "dislikeAuthor",
"itemPosition": "1",
"keyword": "iphone"
},
"page": "Page_xySearchResult"
},
"icon": "https://gw.alicdn.com/imgextra/i4/O1CN01d2x4An1z5FVcHazR1_!!6000000006662-2-tps-96-96.png",
"index": "2",
"text": "不喜欢该卖家"
},
{
"apiParams": {
"actType": "queryUnrelated",
"extra": "GjU2ReiYTXiaeaRUzzrLCQ==",
"queryWord": "iphone",
"scene": "Page_xySearchResult",
"targetId": "788636250267",
"targetIndex": "1",
"targetType": "item"
},
"clickParam": {
"arg1": "DisLikeItemFirst",
"args": {
"spm": "a2170.8011571.DisLikeItemFirst.3",
"itemId": "788636250267",
"bizType": "item",
"picHeight": "123.0",
"picWicth": "164.0",
"name": "结果不相关",
"index": "3",
"actType": "queryUnrelated",
"itemPosition": "1",
"keyword": "iphone"
},
"page": "Page_xySearchResult"
},
"icon": "https://gw.alicdn.com/imgextra/i2/O1CN01XMrXCG1W2OB7JmJIY_!!6000000002730-2-tps-96-96.png",
"index": "3",
"text": "结果不相关"
}
],
"similarTargetUrl": "https://h5.m.goofish.com/wow/moyu/moyu-project/idle-photo-search/pages/home?kun=true&wh_ttid=native&opaque=false&extra=%7B%22imageInfo%22%3A%7B%22bizCode%22%3A%22graph_similarity%22%2C%22reqFromPage%22%3A%22main_search_feeds_dislike%22%2C%22source%22%3A%22itemPic%22%2C%22url%22%3A%22http%3A%2F%2Fimg.alicdn.com%2Fbao%2Fuploaded%2Fi3%2FO1CN01jHshLo1oNbdtg6cmF_%21%210-fleamarket.jpg_640x640q90.jpg%22%7D%7D",
"targetUrl": "https://h5.m.goofish.com/wow/moyu/moyu-project/idle-negative-feedback-layer/pages/home-71050?kun=true&opaque=false&loadingVisible=false&wh_ttid=native&__kun_load_policy=nc_ac"
},
"fishTagCustomParam": {
"feedStyle202208": "1",
"feedStyle202304": "1"
},
"fishTags": {
"r2": {
"tagList": [
{
"data": {
"color": "#999999",
"size": "12",
"labelId": "36",
"lineHeight": "1.33",
"bold": "false",
"type": "gradientImageText",
"content": "全新未拆封"
},
"utParams": {
"args": {
"LabelSystem2.0": "1",
"content": "全新未拆封"
},
"arg1": "4_tag_r2_36"
}
},
{
"data": {
"color": "#999999",
"size": "12",
"labelId": "38",
"lineHeight": "1.33",
"bold": "false",
"type": "gradientImageText",
"content": "Apple/苹果"
},
"utParams": {
"args": {
"LabelSystem2.0": "1",
"content": "Apple/苹果"
},
"arg1": "4_tag_r2_38"
}
},
{
"data": {
"color": "#999999",
"size": "12",
"labelId": "34",
"lineHeight": "1.33",
"bold": "false",
"type": "gradientImageText",
"content": "512GB"
},
"utParams": {
"args": {
"LabelSystem2.0": "1",
"content": "512GB"
},
"arg1": "4_tag_r2_34"
}
}
],
"config": {
"delimiterMarginRight": "4.5",
"delimiterWidth": "0.5",
"delimiterPosition": "between",
"delimiterColor": "#D6D6D6",
"delimiterHeight": "10",
"hasDelimiter": "true",
"delimiterMarginLeft": "4.5",
"delimiterMarginBottom": "3",
"mutualLabelBizGroup": "true",
"delimiterMarginTop": "3"
}
},
"r3": {
"tagList": [
{
"data": {
"color": "#999999",
"size": "12",
"labelId": "9",
"lineHeight": "1.3",
"bold": "false",
"type": "text",
"content": "12人想要",
"marginLeft": "4"
},
"utParams": {
"args": {
"LabelSystem2.0": "1",
"content": "12人想要"
},
"arg1": "4_tag_r3_9"
}
}
],
"config": {
"mutualLabelBizGroup": "false"
}
},
"r4": {
"tagList": [
{
"data": {
"bgColor": "#FFF4EB",
"color": "#FF7900",
"borderRadius": "8",
"size": "11",
"labelId": "750",
"borderPaddingLeft": "6",
"lineHeight": "1.3",
"borderPaddingRight": "6",
"type": "gradientImageText",
"content": "百分百好评",
"height": "16"
},
"utParams": {
"args": {
"LabelSystem2.0": "1",
"content": "百分百好评"
},
"arg1": "4_tag_r4_750"
}
}
],
"config": {
"mutualLabelBizGroup": "false"
}
},
"r1": {
"tagList": [
{
"data": {
"marginRight": "4",
"labelId": "13",
"width": "28",
"type": "img",
"alignment": "middle",
"content": "freeShippingIcon",
"url": "https://gw.alicdn.com/imgextra/i3/O1CN01PuymOm1I7yIlVyFV9_!!6000000000847-2-tps-84-48.png",
"height": "16"
},
"utParams": {
"args": {
"LabelSystem2.0": "1",
"content": "freeShippingIcon"
},
"arg1": "4_tag_r1_13"
}
}
],
"config": {
"mutualLabelBizGroup": "false"
}
}
},
"hideUserInfo": "false",
"isAliMaMaAD": "false",
"isAuction": "false",
"itemId": "788636250267",
"jump2XianYuHao": {
"clickParam": {
"arg1": "Jump2User",
"args": {
"bucket_id": "26",
"spm": "a2170.8011571.Jump2User.1",
"user_id": "9VqNOYOLgTeQTHkg/H/fnQ==",
"item_id": "788636250267",
"userIsUseFishShopCard": "false",
"HideUserInfo": "false",
"seller_id": "GjU2ReiYTXiaeaRUzzrLCQ=="
},
"page": "Page_xySearchResult"
},
"targetUrl": "z9xpXnwzz6eu3JHQFPK2nb4PAGLvMlrcMmttP6latEqZfAPLXlS0S2DIuSzLBfgwbrpBTDLSuq50jVIOHj1q8sWdH9r5DUfri00EPe3RM6A="
},
"picHeight": "123.0",
"picUrl": "http://img.alicdn.com/bao/uploaded/i3/O1CN01jHshLo1oNbdtg6cmF_!!0-fleamarket.jpg",
"picWidth": "164.0",
"placeholderColor": "#F7F7F7",
"price": [
{
"bold": "false",
"fontFamily": "xianyubeta",
"marginBottom": "4.5",
"marginLeft": "0.0",
"text": "¥",
"textColor": "#ff4400",
"textSize": "11.0"
},
{
"bold": "false",
"fontFamily": "xianyubeta",
"marginBottom": "3.0",
"marginLeft": "0.0",
"text": "1306",
"textColor": "#ff4444",
"textSize": "18.0"
}
],
"priceTag": [],
"richTitle": [
{
"data": {
"alignment": "middle",
"height": "20.0",
"marginBottom": "0.0",
"marginLeft": "0.0",
"marginRight": "4.0",
"marginTop": "0.0",
"url": "https://gw.alicdn.com/tfs/TB1eCD602b2gK0jSZK9XXaEgFXa-84-48.png",
"width": "35.0"
},
"type": "Image"
},
{
"data": {
"bold": "false",
"fontWeight": "w400",
"lineHeight": "1.43",
"text": "女生自用闲置苹果iPhone 14pro灵动岛暗紫色国行 512G 成色全新 全网通 ,双卡双待 纯原装,无拆无修,没有磕碰,没有暗病,手机所有功能都正常的使用,面容好用。七天无理由退换货,全国联保一年!",
"textColor": "#1F1F1F",
"textSize": "14.0"
},
"type": "Text"
}
],
"showVideoIcon": "false",
"stuffStatusTagHeight": "0.0",
"stuffStatusTagWidth": "0.0",
"title": "女生自用闲置苹果iPhone 14pro灵动岛暗紫色国行 512G 成色全新 全网通 ,双卡双待 纯原装,无拆无修,没有磕碰,没有暗病,手机所有功能都正常的使用,面容好用。七天无理由退换货,全国联保一年!",
"titleSpan": {
"bold": "false",
"color": "#1F1F1F",
"content": "女生自用闲置苹果iPhone 14pro灵动岛暗紫色国行 512G 成色全新 全网通 ,双卡双待 纯原装,无拆无修,没有磕碰,没有暗病,手机所有功能都正常的使用,面容好用。七天无理由退换货,全国联保一年!",
"fontWeight": "w400",
"lineHeight": "1.43",
"maxLines": "2",
"size": "14.0"
},
"userActiveUrl": "https://gw.alicdn.com/tfs/TB1zIymVUz1gK0jSZLeXXb9kVXa-30-30.png",
"userAvatarUrl": "http://img.alicdn.com/bao/uploaded/i1/O1CN01NltjNJ1oNbdci6O8z_!!0-mtopupload.jpg",
"userFishShopLabel": {
"config": {
"delimiterColor": "#D6D6D6",
"delimiterHeight": "12",
"delimiterMarginLeft": "4.5",
"delimiterMarginRight": "4.5",
"delimiterPosition": "between",
"delimiterWidth": "0.5",
"hasDelimiter": "true",
"mutualLabelBizGroup": "true"
},
"tagList": [
{
"data": {
"color": "#999999",
"content": "6条评价",
"lineHeight": "1.33",
"size": "10",
"type": "gradientImageText"
}
},
{
"data": {
"color": "#999999",
"content": "好评率100%",
"lineHeight": "1.33",
"size": "10",
"type": "gradientImageText"
}
}
]
},
"userIdentityShow": "",
"userIsUseFishShopCard": "false",
"userNickName": "诚信第一",
"want": ""
},
"targetUrl": "fleamarket://awesome_detail?id=788636250267&flutter=true&referPageArgs=iphone&gulSource=search&extra=%7B%22labelIds%22%3A%2236%2C38%2C34%2C9%2C750%2C13%22%2C%22source%22%3A%227%22%7D&referPage=Page_xySearchResult&trackParamsJson=%7B%22q%22%3A%22iphone%22%2C%22item_id%22%3A%22788636250267%22%2C%22item_type%22%3A%22goods%22%2C%22index%22%3A%221%22%2C%22page%22%3A%221%22%2C%22id%22%3A%22788636250267%22%2C%22rn%22%3A%227403a9b4d78f5a8665effe56a1b9c058%22%2C%22search_from_page%22%3A%22xyHome%22%2C%22search_id%22%3A%22a5507830d9f36fc69894e2684c958bc9%22%7D"
}
},
"template": {
"name": "idlefish_search_item_new_tags",
"url": "https://dinamicx.alibabausercontent.com/pub/idlefish_search_item_new_tags/1712647656006/idlefish_search_item_new_tags.zip",
"version": "1712647656006"
},
"templateSingle": {
"name": "idlefish_search_item_single_column",
"url": "https://dinamicx.alibabausercontent.com/pub/idlefish_search_item_single_column/1704445459595/idlefish_search_item_single_column.zip",
"version": "1704445459595"
}
},
"style": "flow",
"type": "DX"
}