-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chenbenqing
committed
Apr 9, 2019
0 parents
commit cca8cab
Showing
56 changed files
with
14,221 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<div class="borderBottom box plr15"> | ||
<p class="size16 ptb10 pl10 font-bold pr boxItem"><span class="titleIcon abs-lm"></span>做任务有钱赚</p> | ||
|
||
<p class="ta-r size12 pt14 pr15 pr"> | ||
</p> | ||
</div> | ||
<div class="mlr15"> | ||
<div class="borderBottom box pr"> | ||
<div class="exchangeCoinIcon"></div> | ||
<div class="pt15 boxItem"> | ||
<p class="size16">打卡 | ||
<a href="javascript:void(0);" class="jobInfo" prizesDetail=" 用户连续7天打卡即可领取1钢镚。8月8日10点起,钢镚领取需是金融实名且办理小白卡的用户。"><span class="info"></span></a> | ||
</p> | ||
|
||
<p class="size12 userTxtGrey">连续打卡7次送1钢镚</p> | ||
</div> | ||
<div class="getGift canGet abs-rm recPrize " | ||
prizesCfgId="82" clstag="jr|keycount|jrxbk_bz|rwlq"> | ||
领取 | ||
</div> | ||
</div> | ||
<div class=" box pr"> | ||
<div class="exchangeCoinIcon"></div> | ||
<div class="pt15 boxItem"> | ||
<p class="size16">成功办理小白卡 | ||
<a href="javascript:void(0);" class="jobInfo" prizesDetail=" 5月20日-12月31日期间,凡申请并审核通过的小白卡用户,每个ID限送1钢镚。钢镚返还将在银行核卡通过后的7个工作日内直充到账。"><span class="info"></span></a> | ||
</p> | ||
|
||
<p class="size12 userTxtGrey">5月20日后核卡成功,每人限送1钢镚</p> | ||
</div> | ||
<div class="getGift canGet abs-rm recPrize " | ||
prizesCfgId="86" clstag="jr|keycount|jrxbk_bz|rwlq"> | ||
领取 | ||
</div> | ||
</div> | ||
</div> | ||
<script> | ||
Zepto(function ($) { | ||
var recFlag=false; | ||
$('.recPrize').on('click', function () { | ||
if(!recFlag){ | ||
var me=$(this); | ||
var prizesCfgId = me.attr('prizesCfgId'); | ||
if (prizesCfgId == null) { | ||
return false; | ||
} | ||
recFlag=true; | ||
Zepto.ajax({ | ||
url: '/m/money/home/recDoJobMoney.html?pcId=' + prizesCfgId, | ||
type: 'GET', | ||
dataType: 'json', | ||
complete:function(){ | ||
recFlag=false; | ||
}, | ||
success: function (doJobRes) { | ||
if (!checkLogin(doJobRes)) { | ||
return false; | ||
} | ||
if (doJobRes.success) { | ||
me.addClass('got'); | ||
me.removeClass('recPrize'); | ||
me.off('click'); | ||
me.html('已领取') | ||
moneyDialog({dT1: ['领取成功'], cancel: '知道了'}) | ||
} else { | ||
if(doJobRes.resultCode=='apply_suc'){ | ||
moneyDialog({ | ||
dT1: [doJobRes.resultMessage], cancel: '我知道了', sure: '立即申请', sureFn: function () { | ||
location.href = "/m"; | ||
} | ||
}) | ||
}else if(doJobRes.resultCode=='handle_suc'){ | ||
moneyDialog({ | ||
dT1: [doJobRes.resultMessage], cancel: '我知道了', sure: '查看进度', sureFn: function () { | ||
location.href = "/m/card/wapCitic/result.html"; | ||
} | ||
}) | ||
}else{ | ||
commonFailDia(doJobRes.resultCode, doJobRes.resultMessage,'') | ||
} | ||
|
||
} | ||
|
||
} | ||
}) | ||
} | ||
}); | ||
|
||
$('.jobInfo').on('click', function () { | ||
var prizesDetail=$(this).attr("prizesDetail"); | ||
if(prizesDetail!=null&&prizesDetail!=''){ | ||
moneyDialog({dT1: [prizesDetail], cancel: '知道了'}) | ||
} | ||
}) | ||
|
||
}) | ||
</script> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
https://wq.jd.com/fav/shop/DelShopFav?shopId=1000002367&venderId=1000002367&_=1552459312919&g_login_type=0&callback=jsonpCBKK&g_tk=170665066&g_ty=ls | ||
|
||
|
||
GET /fav/shop/DelShopFav?shopId=1000002367&venderId=1000002367&_=1552459312919&g_login_type=0&callback=jsonpCBKK&g_tk=170665066&g_ty=ls HTTP/1.1 | ||
Host: wq.jd.com | ||
Connection: keep-alive | ||
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 | ||
Accept: */* | ||
Referer: https://wq.jd.com/mshop/gethomepage?shopId=1000002367 | ||
Accept-Encoding: gzip, deflate, br | ||
Accept-Language: zh-CN,zh;q=0.9 | ||
Cookie: | ||
|
||
|
||
|
||
try{jsonpCBKK({"iRet":"0","errMsg":"success"});}catch(e){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
https://wq.jd.com/mjgj/column/DrawShopGift?channel=7&venderId=1000133822&activityId=398240&_=1551838113815&sceneval=2&g_login_type=1&callback=jsonpCBKL&g_tk=270919183&g_ty=ls | ||
|
||
jsonpCBKL({ | ||
"errcode": 0, | ||
"msg": "success" | ||
}); | ||
|
||
|
||
|
||
|
||
---------------------------------- | ||
|
||
jsonpCBKG({ | ||
"errcode": 0, | ||
"msg": "success", | ||
"shopgift": [{ | ||
"id": "0", | ||
"venderId": "0", | ||
"activityId": "0", | ||
"prizeType": "0", | ||
"discount": "0", | ||
"quota": "0", | ||
"modelNameList": [{ | ||
"code": "-2", | ||
"desc": "全部用户" | ||
}] | ||
}], | ||
"member": { | ||
"venderId": "1000086770", | ||
"isMember": "0" | ||
}, | ||
"isvOrofficial": 2, | ||
"isvActivityLink": "https://lzkj-isv.isvjcloud.com/wxShopGift/activity?activityId=f0039623edc04fe99e18d81b1e3647ab" | ||
}); | ||
|
||
|
||
https://lzkj-isv.isvjcloud.com/wxShopGift/draw | ||
|
||
|
||
POST /wxShopGift/draw HTTP/1.1 | ||
Host: lzkj-isv.isvjcloud.com | ||
Connection: keep-alive | ||
Content-Length: 101 | ||
Accept: application/json | ||
Origin: https://lzkj-isv.isvjcloud.com | ||
X-Requested-With: XMLHttpRequest | ||
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 | ||
Content-Type: application/x-www-form-urlencoded | ||
Referer: https://lzkj-isv.isvjcloud.com/wxShopGift/activity?activityId=f0039623edc04fe99e18d81b1e3647ab | ||
Accept-Encoding: gzip, deflate, br | ||
Accept-Language: zh-CN,zh;q=0.9 | ||
Cookie: JSESSIONID=2D86A955ADE9D2DAA99413FD1E2E482B; lz_wq_auth_token=FBE7AE26C52C69079C8118557135D8A6C6E08A14E6AFE24B93F43D7C10BDD534 | ||
|
||
form data: | ||
activityId=f0039623edc04fe99e18d81b1e3647ab&buyerPin=chenbenqing530905787&hasFollow=false&accessType= | ||
|
||
{"result":false,"data":"000015","count":0,"errorMessage":"您的店铺礼包奖品已经发放,请您不要重复领取!"} | ||
|
||
-------------------------------------------------------- | ||
jsonpCBKF({ | ||
"errcode": 0, | ||
"msg": "success", | ||
"shopgift": [{ | ||
"id": "0", | ||
"venderId": "0", | ||
"activityId": "0", | ||
"prizeType": "0", | ||
"discount": "0", | ||
"quota": "0", | ||
"modelNameList": [{ | ||
"code": "-2", | ||
"desc": "全部用户" | ||
}] | ||
}], | ||
"member": { | ||
"venderId": "1000081681", | ||
"isMember": "0" | ||
}, | ||
"isvOrofficial": 2, | ||
"isvActivityLink": "https://lzkj-isv.isvjcloud.com/wxShopGift/activity?activityId=8cf31931e88c43969200b2997579dbf0" | ||
}); | ||
|
||
|
||
https://lzkj-isv.isvjcloud.com/wxShopGift/draw | ||
POST /wxShopGift/draw HTTP/1.1 | ||
Host: lzkj-isv.isvjcloud.com | ||
Connection: keep-alive | ||
Content-Length: 100 | ||
Accept: application/json | ||
Origin: https://lzkj-isv.isvjcloud.com | ||
X-Requested-With: XMLHttpRequest | ||
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 | ||
Content-Type: application/x-www-form-urlencoded | ||
Referer: https://lzkj-isv.isvjcloud.com/wxShopGift/activity?activityId=8cf31931e88c43969200b2997579dbf0&wqType=xr&drawStatus=n&token=FBE7AE26C52C69079C8118557135D8A6E2FBE824CCD984EF18C6364534F148A3 | ||
Accept-Encoding: gzip, deflate, br | ||
Accept-Language: zh-CN,zh;q=0.9 | ||
Cookie: route=7c6a7b7fb5dc20a3c74164bf3149e9ed; JSESSIONID=59FCDCDAD3EE5ADC7073AAB8CAD5323D | ||
|
||
form data: | ||
activityId=8cf31931e88c43969200b2997579dbf0&buyerPin=chenbenqing530905787&hasFollow=true&accessType= | ||
|
||
|
||
{ | ||
"result": false, | ||
"data": "000015", | ||
"count": 0, | ||
"errorMessage": "您的店铺礼包奖品已经发放,请您不要重复领取!" | ||
} | ||
|
||
|
||
------------------------------------------- | ||
jsonpCBKG({"errcode":0,"msg":"success","shopgift":[{"id":"0","venderId":"0","activityId":"0","prizeType":"0","discount":"0","quota":"0","modelNameList":[{"code":"-3","desc":"未关注店铺用户"}]}],"member":{"venderId":"1000013169","isMember":"0"},"isvOrofficial":2,"isvActivityLink":"https://lzkj-isv.isvjcloud.com/wxShopGift/activity?activityId=ba787e3d63a346a7aaf75f8c3da4d220"}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
https://wq.jd.com/userattribute/QueryIsNewUser?sceneid=2&_=1551836097694&sceneval=2&g_login_type=1&callback=jsonpCBKJ&g_tk=270919183&g_ty=ls | ||
|
||
GET /userattribute/QueryIsNewUser?sceneid=2&_=1551836097694&sceneval=2&g_login_type=1&callback=jsonpCBKJ&g_tk=270919183&g_ty=ls HTTP/1.1 | ||
Host: wq.jd.com | ||
Connection: keep-alive | ||
User-Agent: Mozilla/5.0 (Linux; Android 8.1.0; CLT-AL00 Build/HUAWEICLT-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/10.13 baiduboxapp/10.13.0.10 (Baidu; P1 8.1.0) | ||
Accept: */* | ||
Referer: https://shop.m.jd.com/?shopId=650065 | ||
Accept-Encoding: gzip, deflate, br | ||
Accept-Language: zh-CN,zh;q=0.9 | ||
Cookie: shshshfpa=97a5cda0-7e69-b5b7-1f5e-3eb3e4d2734c-1551790596; __jdc=122270672; mba_muid=1551790596915971035745; 3AB9D23F7A4B3C9B=YQLXHNOXSHLZXXTUVSGWPRBDE6UF4I4CIBJZW33Q5CPCOKJYXMTPWKNILF2AJRUYFPNU4ONEI7D2I42X7LKX4AUNLY; shshshfpb=jUfga1K4OYpim91%2FHvPktBQ%3D%3D; TrackerID=kjkPnaVZp57ZbxFTTFmz5NM2_DtynaHqSzMJsqAEny2fHWW8GIL65aBSDg4oNC6EIb6UaOy01DdaMM2Fb0WnA6P61rIxyKC_IeoC579tD4sQnzMKizgj9786pS3248VWQO3i-SxPo5eJIpmuMVCYIA; pinId=DhKE8G3l-4eLfwNtpje9-jIt0Ryn8Rtl; pt_key=AAFcfnIOAED2me9_Guc8ETEkIXldK9nYTyVi9EMfVONzCVXxeg-TJQbpqZjJLaGR8Ek4UHdUu0MA1E1HhobBpKXjKKENaHMY; pt_pin=chenbenqing530905787; pt_token=o37meadp; pwdt_id=chenbenqing530905787; wxa_level=1; retina=0; webp=1; visitkey=43149411965891088; unpl=V2_ZzNtbUsDERZxXxRWeB5VUmIFQlgRA0UVIVtDUHwfVFZnBxoIclRCFX0UR1ZnGFgUZAIZWUVcRxJFCEJkexhdBWUKFl1BXnMlfQAoVDYZMgYJAF8QD2dAFUUIR2R7HVgFYQsTWUpQSxVxAEBUehtYA2IHIm1CUXMlKVYYCyxdAzVmMxNtQ2cIe3RFRlB%2fGVoNZgcaWkpXRx1zCEdWfx9ZAVcCIl4%3d; CCC_SE=ADC_pnJ9S60j9ltEqIvlFiBLBnmrj0OQ5aWa3DE9PASBlsCMHXoGQH0GRUkXvLXo%2fmqbVUjTpXfT2pA7hJ7scEgcLZbH4%2fBWZobdyHuMKcXmCFyzRxhegwss%2bl%2f1PuuqyPmqRporlqiZzc2K7sLr%2ffu%2fp5BqNW%2bg0ZsBXERTqwRuVo%2f25O6J8EB9P5jQGvdfYlREsIah6tDFmxxw8iUchjV0r8%2blTVZhoh2KXMuTGmwsojK92KXRNoBFdyMyhnqZ7iKNrefkQINXx705LrhoKLZR16BXn4NZT1llglByRwg1hdt500LUecGbzIYK5qYnPjN53VMi7PFd75KKqBfIXmAfDsi04DRRuGsCqIEzo6jDXbytFH1sDT7ZXK2FjXGbBodgoTQ3M980sFUW9cOU9LCiX3UbE0SS1owbOV5jTXs51j3LuTGYrVaaa4jwvuR08cPNzt4v0sDrrWwQEAQF5KvyxPM3L02Ffi9nUPMQBec%2fMa3XEO4k42U%2bLeLniV5p%2faYw; buy_uin=15267816432; jdpin=chenbenqing530905787; pin=chenbenqing530905787; wq_uin=15267816432; __jdv=122270672%7Ckong%7Ct_1001385128_%7Cjingfen%7C8ec25fc3268f47a4be71eb45679b159d%7C1551790617130; PPRD_P=UUID.1551790596915971035745; sc_width=1536; shshshfp=124bcdb8682cbc0022a9f427e1ad538b; __jda=122270672.1551790596915971035745.1551790596.1551790616.1551833728.3; wq_area=18_1482_0%7C1; wq_skey=zm0369108C0EA8AC176AC2C06D631EBC4805E6C31328A12D71A456B55C1A413031861442E67B0706F4A68386A4767CA68D513B7A5EDBB783F7B9093E462AE92A68F0FB664459602DCD2E139CD1601B7B30216DB8C867491566BCB76BCE365D3C9A; __wga=1551835334172.1551833728331.1551790617123.1551790617123.5.2; shshshsID=c5fc53e7624d74fe1dcdea994b967220_5_1551835334456; cid=9; __jdb=122270672.6.1551790596915971035745|3.1551833728; mba_sid=15518337281493840959056981772.6 | ||
|
||
|
||
try{jsonpCBKJ({"retcode":0,"msg":"success","isNewUser":1});}catch(e){} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
https://wq.jd.com/fav/shop/QueryOneShopFav?shopId=1000000557&venderId=1000000557&_=1552036665163&sceneval=2&g_login_type=1&callback=jsonpCBKE&g_ty=ls | ||
|
||
GET /fav/shop/QueryOneShopFav?shopId=751791&venderId=755989&_=1552444345095&sceneval=2&g_login_type=1&callback=jsonpCBKE&g_tk=1245070929&g_ty=ls HTTP/1.1 | ||
Host: wq.jd.com | ||
Connection: keep-alive | ||
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 | ||
Accept: */* | ||
Referer: http:https://shop.m.jd.com/?shopId=751791&cu=true&utm_source=kong&utm_medium=jingfen&utm_campaign=t_1001385128_&utm_term=992b1f99df0f41d99448a8a516f65dbc | ||
Accept-Encoding: gzip, deflate | ||
Accept-Language: zh-CN,zh;q=0.9 | ||
Cookie: | ||
|
||
|
||
try{jsonpCBKF({"iRet":"0","errMsg":"","state":"0"});}catch(e){} |
Oops, something went wrong.
cca8cab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
非常详细的内容,工作量很大,辛苦,感谢!。
一点小建议:
u.jd.com 短链接不需要用selenium,requests.get获得网页中的链接,然后再对新链接requests.head就能得到跳转的location了,省点资源。
cca8cab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wliustc 您好~
关于短链接的复原问题,我确实一直没有什么办法,所以只能用selenium,根据您的指点,是有两个步骤
(先requests.get获得网页中的链接,再再对新链接requests.head取其中的location),发现确实是可以的,
这样的话,效率高了很多,而我之前有网上了解这个方案,原来我是没理解透,略过了第一步,没有效果,哈哈。
我看了你GitHub,从你fork的工程看,也有大量的python + android 的代码库(^-^),希望多指教
cca8cab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
哈哈,指教可不敢当,非计算机相关专业,之前完全不懂python,andriod更是一头雾水。主要是,为了京东领券,自己去年开始瞎琢磨,看网页,还有github上各位的源代码,共同进步吧。