实现方法
基本思路就是: 1.点击一个url。2:然后立即跳转到支付宝app。3:最后秒领红包。
完整代码如下:
<html>
<head>
<title>拼手气红包,支付宝官方活动!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
*{
margin:0;
padding:0;
}
/*body{
background: url(./bg.png);
}*/
#bg{
width: 100%;
height: 100%;
position: fixed;
top: 0;
}
#bg img{
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="bg">
<a href="https://ulink.alipay.com/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FsaId%3D10000007%26clientVersion%3D3.7.0.0718%26qrcode%3Dhttps%253A%252F%252Frender.alipay.com%252Fp%252Fc%252Falipay-red-qrcode%252Fshared.html%253Fchannel%253Dsearch_pwd%2526shareId%253D2088612919476191%2526token%253DeNW519615722hxvtohmu1hvno2fbiD%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd%22%3E%3Cimg src="https://lwsaascos-1311562825.cos.ap-nanjing.myqcloud.com/2022/0.gif%22 /></a>
</div>
</body>
<script type="text/javascript">
window.onload=function(){
window.location = 'https://ulink.alipay.com/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FsaId%3D10000007%26clientVersion%3D3.7.0.0718%26qrcode%3Dhttps%253A%252F%252Frender.alipay.com%252Fp%252Fc%252Falipay-red-qrcode%252Fshared.html%253Fchannel%253Dsearch_pwd%2526shareId%253D2088612919476191%2526token%253DeNW519615722hxvtohmu1hvno2fbiD%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd';
}
</script>
</html>
代码修改:
https://ulink.alipay.com/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FsaId%3D10000007%26clientVersion%3D3.7.0.0718%26qrcode%3Dhttps%253A%252F%252Frender.alipay.com%252Fp%252Fc%252Falipay-red-qrcode%252Fshared.html%253Fchannel%253Dsearch_pwd%2526shareId%253D2088612919476191%2526token%253DeNW519615722hxvtohmu1hvno2fbiD%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd
1
只需要修改当前url中,shareId 和 token 的值即可
shareId的获取方法(需要登陆电脑端支付宝):
支付宝扫码就可以出来
token的获取方法token
需要在赚钱红包页面点击分享,然后分享至钉钉,这个时候,二维码就会被保存,然后用微信扫码,出来就是一个token,将这个token的 19
开头前面的删除,剩下的就是我们需要的token。