代码拉取完成,页面将自动刷新
<?php
$uuid = isset($_GET['uuid'])?$_GET['uuid']:null;
require_once ('cron/dbs.class.php');
$conn = new DBS();
$sql = "SELECT `username` FROM `share` WHERE `uuid`=$uuid";
$text='';
$textTwo='';
if(($uuid && $response = $conn->query($sql)->fetch_assoc())!=null){
$Dusername = $response['username'];
$text='这是一个来自'.$Dusername.'的现金红包!';
$textTwo='1.输入安网云登录用户名即可获得'.$Dusername.'送给你的现金红包!';
}else{
//骚操作开始
$uuid = '0000';
$text = '该红包不存在!';
$textTwo='1.使用正确的红包链接才可以领取红包';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>领取红包-安网云</title>
<script src="layui/layui.all.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="layui/css/layui.css" />
<style type="text/css">
#sec {
width: 300px;
height: 100px;
margin: 0 auto;
margin-top: 30px;
border-radius: 10px;
box-shadow: 2px 1px 20px #B3B3B3;
}
#sec-sec {
width: 232px;
height: 100px;
margin: 0 auto;
background: #fff;
line-height: 100px;
}
#sec-sec button {
width: 70px;
display: inline-block;
border-radius: 0 10px 10px 0;
margin-left: -5px;
margin-top: -3px;
}
#sec input[name='userName'] {
width: 150px;
display: inline-block;
border-radius: 10px 0 0 10px;
}
#foot {
width: 700px;
height: 300px;
margin: 0 auto;
margin-top: 50px;
}
#foot-text {
width: 580px;
height: 300px;
margin-left: 20%;
color: #B3B3B3;
}
#queryBut{
width: 222px;
margin: 0 auto;
margin-top: 30px;
}
#queryBut a{
width: 220px;
border-radius: 10px 10px 10px 10px;
box-shadow: 2px 1px 20px #B3B3B3;
transform: all 1s initial;
}
#queryBut a:hover{
box-shadow: 0px 0px 0px #B3B3B3;
}
#head{
width:100%;
margin-top: 15%;
text-align: center;
font-size: 20px;
color:#1E9FFF ;
}
</style>
</head>
<body bgcolor="">
<div id="head">
<span id="title">
<?php echo $text; ?>
</span>
</div>
<div id="sec">
<div id="sec-sec">
<input type="text" name="userName" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
<button id="scbut" type="button" class="layui-btn layui-btn-normal ">领取</button>
</div>
</div>
<div id="queryBut">
<a href="index.html" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-normal">我也要免费发红包</a>
</div>
<div id="foot">
<div id="foot-text">
<span><?php echo $textTwo; ?></span><br>
<span>2.领取后现金红包将存入你的安网云账户预存款</span><br>
<span>3.禁止代理IP、刷注册等作弊行为,安网云不定期进行人工检查。</span><br>
<span>4.作弊者将直接禁封账户以及账户下所有产品不予退款。</span><br>
<span>5.本活动解释权归安网云所有</span>
</div>
</div>
</body>
<script>
;
! function() {
var form = layui.form,
layer = layui.layer;
};
$(document).ready(
function(){
layer.open({
title: '领取说明!',
content: '领取红包需要先在安网云注册账户呦~<br/>你要现在注册吗?',
btn:['是','否'],
yes: function(){
window.location.href="https://www.anwyun.com/index.php/index/register/";
},
});
}
)
$("#scbut").click(function() {
var val = $("input[name='userName']").val();
if (val == "") {
layer.msg("用户名不许为空呦~");
}else{
$.ajax({
url: "api.php",
type: "post",
data: {
User: val,
Type:"old",
Share:<?php echo $uuid; ?>
},
success: function(data) {
var response = JSON.parse(data);
if (response['code'] == 0) {
layer.msg(response['msg']);
} else if (response['code'] == 1) {
layer.open({
title: '领取成功!',
content: '您的红包将直接发送至您的账户!请注意查收!<br/>另外,你也想要免费发红包吗?',
btn:['是','否'],
yes: function(){
window.location.href="index.html";
},
});
}
},
error: function(data) {
layer.msg("网络错误!");
},
})
}
})
</script>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。