当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
2 Star 2 Fork 1

SomUrim/AnwyunShareSystem
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
good.php 5.19 KB
一键复制 编辑 原始数据 按行查看 历史
SomUrim 提交于 2019-02-04 05:33 . 上线前的最后一次修改 @SomUrim 
<?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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/SomUrim/AnwyunShareSystem.git
[email protected]:SomUrim/AnwyunShareSystem.git
SomUrim
AnwyunShareSystem
AnwyunShareSystem
master

搜索帮助