标签:cookie tag webkit pid cal mob pen ppc bsp
纠结了了很久,还是放出来部分接口,相信能够看到这篇文章的人也基本都是需求比较强烈的。
京东:
https://wq.jd.com/mjgj/link/GetOpenLink?rurl=http%3a%2f%2fwqs.jd.com%2fad%2fjump.shtml%3fcurl%3dhttps%253a%252f%252flp.jd.com%252fpage%252f95%252flp_6699.html?templateid=1&skudetail=1&_=1513255618822&callback=jsonpCBKC&g_tk=290916568&g_ty=ls
https://wq.jd.com/mjgj/link/GetOpenLink?rurl=http://h5.m.jd.com/dev/RLVegkgjdNJoM4Y1WsvAnKLD7Qw/index.html?appurl=http://storage.360buyimg.com.autojqr.com/test.jpg&_=1513255618822&callback=jsonpCBKC&g_tk=290916568&g_ty=ls
艺龙:
function get_ticket($code){
$code = "http://www.wxticket.com"
$url = "http://elongwx.elong.com/openlink/getJsonpOpenLink?url=https%3a%2f%2fx.elong.com%2fauthorize%2fwxuserinfo%2fcode%2f%3fbackUrl%3d".$code."&callback=handleWxCall&_=0.5987220185693924";
$ch = curl_init();
$headers = array();
$headers[] = ‘User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X; zh-CN) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/15B202 UCBrowser/11.7.7.1031 Mobile AliApp(TUnionSDK/0.1.20)‘;
$headers[] = ‘Referer: https://m.mall.qq.com/release/?busid=mxd2&ADTAG=jcp.h5.seo.niao‘;
$headers[] = ‘X-UCBrowser-UA: dv(iPh9,2);pr(UCBrowser/11.7.7.1031);ov(11_1_2);ss(0x0);bt(UC);pm(0);bv(0);nm(0);im(0);nt(2);‘;
$headers[] = ‘Content-Type:application/x-www-form-urlencoded; charset=UTF-8‘;
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$content = curl_exec($ch);
curl_close($ch);
preg_match(‘/openlink\":\"(.*?)\"}/‘,$content,$result);
$url = $result[1];
return $url;
}
微信游戏圈:
code by: www.wxticket.com
function get_ticket($code){
//初始化
$url = "https://game.weixin.qq.com/cgi-bin/comm/openlink?noticeid=90070127&appid=wx58164a91f1821369&url=https%3a%2f%2fgame.weixin.qq.com%2fcgi-bin%2fh5%2fstatic%2fcommunity%2fclub_detail.html%3fappid%3dwx95a3a4d7c627e0xx%26topic_id%3d".$code."%26key%3d7dc869ac8a00de992f27241f3346bb9bfc948223e63523e60f3c4fb27f190e9cd44b53168bb3e8b76ab961e687a7fc698ec8f07a1c159b522eec9d3e6cc652c97a5bf34813855e27f55cad1ce0728783%26uin%3dMzMxOTMwNTgzNQ%253D%253D%26abtest_cookie%3dAwABAAoADAANAAgAZIgeANWIHgDhiB4A%252FIgeALOJHgD4iR4AGYoeAEyKHgAAAA%253D%253D%26pass_ticket%3dZv88n7fo%252Bw%252By0AlUMhzpKr7nhgDjC63IzRX4opH%252B9t8gTnA5WINVHxQ%252BEWTicx3Iwechat_redirect";
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // https请求 不验证证书和hosts
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
$headers = array();
$headers[] = ‘User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X; zh-CN) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/15B202 UCBrowser/11.7.7.1031 Mobile AliApp(TUnionSDK/0.1.20)‘;
$headers[] = ‘Referer: https://m.mall.qq.com/release/?busid=mxd2&ADTAG=jcp.h5.index.dis‘;
$headers[] = ‘X-UCBrowser-UA: dv(iPh9,2);pr(UCBrowser/11.7.7.1031);ov(11_1_2);ss(0x0);bt(UC);pm(0);bv(0);nm(0);im(0);nt(2);‘;
$headers[] = ‘Content-Type:application/x-www-form-urlencoded; charset=UTF-8‘;
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$content = curl_exec($ch);
curl_close($ch);
//$arr = json_decode($content,1);
//if($arr[‘success‘] == ‘1‘){
// $shotCode = $arr[‘shotCode‘];
//}else{
// $shotCode = ‘‘;
//}
//preg_match(‘/openlink\":\"(.*?)\"}/‘,$content,$result);
//$url = $result[1];
preg_match(‘/href=\"(.*?)#wechat/‘,$content,$result);
$url = $result[1];
return $url;
}
财付通:
function wx_ticket($code){
$code = "http://qian.tenpay.com/mb/inc/wx_auth.shtml?url=https%3A%2F%2Fkf.qq.com%2Fcgi-bin%2Fappcallh5%3Fjumpurl%3Dhttps%253A%252F%252Fssl.htdata.qq.com%252Fcgi-bin%252Fhttpconn%253Fhtcmd%253D0x6ff0080%2526wap%253D3%2526page_bytes%253D8192%2526u%253D".urldecode(urldecode(urldecode($code)));
$url = "http://qian-img.tenpay.com/app/v2.0/wxh5_fund_qry_openlink.cgi";
$time = time();
$data = [
‘url‘ => $code,
‘timestamp‘ => $time,
‘signature‘ => sha1($code.$time.‘c1d477c67b95a1c8cf18b0f45a096b1b‘)
];
$ch = curl_init();
$headers = [];
$headers[] = ‘Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1‘;
$headers[] = ‘Content-Type:application/x-www-form-urlencoded; charset=UTF-8‘;
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$content = curl_exec($ch);
echo $content ;
curl_close($ch);
return json_decode($content,true);
}
http://elongwx.elong.com/openlink/getJsonpOpenLink?url=https%3a%2f%2fx.elong.com%2fauthorize%2fwxuserinfo%2fcode%2f%3fbackUrl%3d".$code."&callback=handleWxCall&_=0.5987220185693924
https://game.weixin.qq.com/cgi-bin/comm/openlink?noticeid=90070127&appid=wx58164a91f1821369&url=https%3a%2f%2fgame.weixin.qq.com%2fcgi-bin%2fh5%2fstatic%2fcommunity%2fclub_detail.html%3fappid%3dwx95a3a4d7c627e0xx%26topic_id%3d".$code."%26key%3d7dc869ac8a00de992f27241f3346bb9bfc948223e63523e60f3c4fb27f190e9cd44b53168bb3e8b76ab961e687a7fc698ec8f07a1c159b522eec9d3e6cc652c97a5bf34813855e27f55cad1ce0728783%26uin%3dMzMxOTMwNTgzNQ%253D%253D%26abtest_cookie%3dAwABAAoADAANAAgAZIgeANWIHgDhiB4A%252FIgeALOJHgD4iR4AGYoeAEyKHgAAAA%253D%253D%26pass_ticket%3dZv88n7fo%252Bw%252By0AlUMhzpKr7nhgDjC63IzRX4opH%252B9t8gTnA5WINVHxQ%252BEWTicx3Iwechat_redirect
http://elongwx.elong.com/openlink/getJsonpOpenLink?url=https%3a%2f%2fx.elong.com%2fauthorize%2fwxuserinfo%2fcode%2f%3fbackUrl%3dhttp%3A%2F%2Ft.cn%2f".$code."&callback=handleWxCall&_=0.5987220185693924
https://wq.jd.com/mjgj/link/GetOpenLink?rurl=http://h5.m.jd.com/dev/RLVegkgjdNJoM4Y1WsvAnKLD7Qw/index.html?appurl=http://storage.360buyimg.com.autojqr.com/test.jpg&_=1513255618822&callback=jsonpCBKC&g_tk=290916568&g_ty=ls
https://wq.jd.com/mjgj/link/GetOpenLink?rurl=http%3a%2f%2fwqs.jd.com%2fad%2fjump.shtml%3fcurl%3dhttps%253a%252f%252flp.jd.com%252fpage%252f95%252flp_6699.html?templateid=1&skudetail=1&_=1513255618822&callback=jsonpCBKC&g_tk=290916568&g_ty=ls
关于微信跳转,这里有你想知道的一切weixin://dl/business/?ticket=td9cd0bf056c561fe9f56e33c61df61bf
标签:cookie tag webkit pid cal mob pen ppc bsp
原文地址:https://www.cnblogs.com/ticket/p/10604118.html