4
头图

Summary

Regarding the Alipay bounty red envelope, it has actually been several years. I remember that it already existed in 2018. When I clicked on WeChat through a link, it would automatically jump to Alipay to receive the bounty. I also wrote a Article: https://segmentfault.com/a/1190000012697529 That year, my bounty had already earned more than 2w. Later, Alipay banned this method in order to prevent this abuse.

New plan (for IOS only)

First look at the animation demonstration:

It is also a URL, and then click into it, because WeChat has related restrictions, as long as you open other apps in WeChat, there must be a pop-up window, otherwise it will jump directly, so there will be a pop-up window, click OK to directly Jump to Alipay.

This solution actually uses an API of DingTalk to jump to Alipay.

code

 <!DOCTYPE html>
<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%253D2088602294611742%2526token%253D196139496tmg2vcinfrii8chMb%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd"><img src="./bg.gif" /></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%253D2088602294611742%2526token%253D196172230ot5hzl0xl3kzdenRO%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd';
}
</script>
</html>

Code analysis and modification

There is a background in the code that I made by my own PS. This is also to imitate an H5 page, make an a tag to jump, and also add an onload event to automatically jump.

We only need to modify two positions, shareId and token .

shareId You can use Alipay to scan the QR code below to get it.

image.png

token 19 to click share on the earning red envelope page, and then share it to DingTalk. At this time, the QR code will be saved, and then scan the code with WeChat, and it will come out as a token. 19 delete before the beginning, the rest is the token we need.

image.png

After replacing it, upload the html file to your own server and you can use it!

I'll put that gif image here, right-click to save it:

https://pic.baike.soso.com/ugc/baikepic2/0/20220923120726-1521196844_gif_600_1166_106634.gif/0

After the image is downloaded, modify the name to bg.gif and put it in the same location as the html.

experience demo

Please use WeChat to scan the code to experience.

image.png

author

TANKING

If you want to join my group, you can add: sansure2016


TANKING
4.8k 声望533 粉丝

热爱分享,热爱创作,热爱研究。