之前看到有人做的,支付宝推广红包的代码,可以在QQ中点开网页自动拉起支付宝转到推广红包页面,自动领取。
<html> <head> <meta charset="utf-8"> <meta name="author" content="此处无用"> </head> <body> <h6 style="font-size:80px;"><a id="gogo" href="alipays://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode=此处填写你的支付宝推广连接">此处填写网页上显示的文字 </a></h6> <center> </div> </center> <script src="https://open.mobile.qq.com/sdk/qqapi.js?_bid=152 "></script> <script> window.onhashchange = function() { document.getElementById("gogo").click(); }; function hh() { document.getElementById("gogo").click(); mqq.ui.openUrl({ target: 2, url: "alipays://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode=此处填你的支付宝推广网址" }); }; setTimeout('hh();', 5); </script> </body> </html>
支付宝推广连接可以,自己支付宝生成二维码,然后用二维码识别软件识别出来。 个人根据自己参数来做,我就不上自己的了,以免广告嫌疑。本代码只支持QQ,生成的网页必须上传到云端,云端需要支持js,php等环境。qq用户打开连接会自动跳转到领取红包页面
标签: 代码分享
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END