最近支付宝又搞事情广发现金红包,当然也是为了拓展线下支付业务,用户每天除了能够领取大小不等的金额以外,还能通过邀请他人领取红包获得等额的现金奖励,所以近期大家都会在各种群里看到关于支付宝领红包的信息。这次的全民领红包活动,很多商家都乐此不惫的邀请别人扫码来获取奖励金,穷疯了的老夜也臭不要脸的加入了浩浩荡荡的大军之中,对于一些懒癌或者来说,复制粘贴口令和打开支付宝扫码很麻烦,然而最近又有新的手段出来了,只要在QQ内点到某个链接就能自动打开支付宝领取红包,非常的方便高效。
针对这种非常新颖的邀(骚)请(操)方(作)式,老夜在确定不会对用户账号安全造成危害的前提下,秉着独乐乐不如众乐乐的原则,果断把源码分享出来了。同时也臭不要脸的再哔哔几句,支付宝首页搜索6893527即可每日领红包了,就当打赏老夜吧!
版本一:
<html lang="zh-cmn-hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge, chrome=1">
<title>正在打开支付宝领红包</title>
<script src="https://open.mobile.qq.com/sdk/qqapi.js"></script>
</head>
<body>
<script>
var qrurl = "https://qr.alipay.com/c1x064016xegpaibqu0dv8e";
function is_weixin() {
if (/MicroMessenger/i.test(navigator.userAgent)) {
return true
} else {
return false
}
}
function is_qq() {
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/(QQ)/i)) {
return true
} else {
return false
}
}
function is_android() {
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/(Android|SymbianOS)/i)) {
return true
} else {
return false
}
}
function is_ios() {
var ua = navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) {
return true
} else {
return false
}
}
function android_auto_jump() {
WeixinJSBridge.invoke("jumpToInstallUrl", {}, function (e) {
});
window.close();
WeixinJSBridge.call("closeWindow")
}
function ios_auto_jump() {
if (qrurl != "") {
location.href = qrurl
} else {
window.close();
WeixinJSBridge.call("closeWindow")
}
}
function onAutoinit() {
if (is_android()) {
android_auto_jump();
return false
}
if (is_ios()) {
ios_auto_jump();
return false
}
}
if (is_weixin()) {
if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener("WeixinJSBridgeReady", onAutoinit, false)
} else if (document.attachEvent) {
document.attachEvent("WeixinJSBridgeReady", onAutoinit);
document.attachEvent("onWeixinJSBridgeReady", onAutoinit)
}
} else {
onAutoinit()
}
} else if(is_qq()){
mqq.invoke("ui", "openUrl", {
url: qrurl,
target: 2,
style: 0
});
}else {
if (qrurl != "") {
location.href = qrurl
} else {
window.close()
}
}
</script>
</body>
</html>
版本二:
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="">
</head>
<body>
<center>
</div>
</center>
<script>window.onhashchange = function() { location.href = 'https://qr.alipay.com/c1x064016xegpaibqu0dv8e'; };
function hh() { history.pushState(history.length + 1, "message", "#"); } setTimeout('hh();', 200);</script>
<div style="display:none">
<iframe src="https://qr.alipay.com/c1x064016xegpaibqu0dv8e"></iframe>
</div>
<script>
function isMobile() {
var sUserAgent = navigator.userAgent.toLowerCase();
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
var bIsMidp = sUserAgent.match(/midp/i) == "midp";
var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
var bIsAndroid = sUserAgent.match(/android/i) == "android";
var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
return bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM;}
</script>
<script src="https://open.mobile.qq.com/sdk/qqapi.js?_bid=152"></script>
<script type="text/javascript">if (isMobile()) { mqq.ui.openUrl({ target: 2, url: "alipays://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode=https://qr.alipay.com/c1x064016xegpaibqu0dv8e" }); }; mqq.ui.addShortcut({ action: "web", title: "", });</script>
</body>
</html>
上述两个版本均是正常可用的,复制任意一个版本的代码用代码编译工具,如notepad++或者DW制作成html文件上传到自己的网站服务器就可以了。
记得把老夜的链接换成大家自己的,也就是https://qr.alipay.com/c1x064016xegpaibqu0dv8e 更换就可以直接用了,这里又有小伙伴问了,支付宝只有口令和二维码呀链接怎么提取?其实很简单,大家用微信扫描自己的支付宝二维码就可以提取出链接了,教程介绍完毕,这里附上老夜的演示地址:www.yeyulingfeng.com/alipay.html (复制到手机QQ中打开,浏览器打开无效)

觉得文章对你有帮助请扫码支持一下老夜吧,或者支付宝首页搜索6893527即可每日领取红包。
最后再补充一句,此源码只适用于安卓手机跳转,PC以及iOS都是不支持的,如果以后有新的老夜也会及时为大家补充,动动小手自己生成推广链接让朋友们点击吧,无需扫码不用复制口令,一个链接就能轻松搞定了!支付宝这次的活动貌似月底就结束了,有需要的小伙伴们赶紧燥起来吧!
夜雨聆风

老夜,现在这个没用了,求你现在使用的这个支付宝领红包,谢谢
抽空分享出来吧
这个支付宝红包跳转的网站,博主研究研究发福利啊https://eps.gs/d8e
你这个js代码没有分享,不能跳转
js是引用的QQ官方的,无需更改。代码都是一样的,本人已测试成功。
真的奇怪,我怎么都不行,和你的代码一样,仅仅把红包链接替换,我的就是不跳转