Automatically receive Alipay red envelopes (ios) construction tutorial

Original link:

You can directly jump to get it on the WeChat terminal




Just replace the shareId and token in the source code

get shareId

Scan the QR code below with Alipay to get your own shareId


get token

  1. Click Share on the Alipay Earning Red Packet page, and then share it to DingTalk. At this time, the QR code will be saved.


  1. Then use WeChat to scan the code, and it will come out as a token. Delete the 19 at the beginning of this token, and the rest is the token we need.


  1. Modify the shareId and token in the source code


source 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; } #bg { width: 100%; height: 100%; position: fixed; top: 0; } #bg img { width: 100%; height: 100%; } #bg .desc { width: 77%; margin: 30px auto 0; padding: 15px 15px; background: #eee; font-size: 17px; line-height: 23px; text-align: justify; border-radius: 10px; color: #666; } #bg h2 { text-align: center; margin: 20px auto 0; color: #f00; } #bg button { margin: 20px auto 0; padding: 10px 18px; font-size: 16px; display: block; outline: none; border: none; border-radius: 100px; background: #006eff; color: #fff; } #bg .androidimg { width: calc(77% + 30px); margin: 30px auto 0; border: 1px solid #ccc; border-radius: 20px; } #bg .androidimg img { overflow: hidden; border-radius: 20px; } </style> <script> // 红包码var code = 797196469; // 跳转链接var url = '' + code; // 跳转app function toApp() { window.location = url; } // 一键复制function copyArticle(event) { const range = document.createRange(); range.selectNode(document.getElementById('hbm')); const selection = window.getSelection(); if (selection.rangeCount > 0) selection.removeAllRanges(); selection.addRange(range); document.execCommand('copy'); alert("已复制红包码,请打开支付宝App粘贴搜索!"); } </script> </head> <body> <div id="bg"> <a href="javascript:void(0);toApp();"> <img src="" /></a> </div> </body> <script type="text/javascript"> window.onload = function () { // 判断操作系统var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); // IOS设备if (isIOS) { toApp(); } else { document.getElementById('bg').innerHTML = '<p class="desc">您的设备不支持自动跳转,请点击下方【一键复制】按钮,再打开支付宝App,粘贴至搜索框,再进行领取红包!</p><h2 id="hbm">' + code + '</h2><button id="copy">一键复制</button><div class="androidimg"><img src="" /></div>'; var obt = document.getElementById("copy"); obt.addEventListener('click', copyArticle, false); } } </script> </html>


This article is reprinted from:
This site is for inclusion only, and the copyright belongs to the original author.