演示效果
文章来源:https://www.toymoban.com/news/detail-667565.html
<?php
error_reporting(0);
if($_POST['url']){
$url='http://wpa.qq.com/msgrd?uin=26198573';
$data['url']=$_POST['url'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$content = curl_exec($ch);
curl_close($ch);
$json=array();
if($content){
$dir='Cache/';
mkdir($dir,0777,true);
$file=$dir.time().rand(111111,999999).'.jpg';
file_put_contents($file,$content);
$json['code']=1;
if($_SERVER['REQUEST_SCHEME']){
$json['url']=$_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].'/'.$file;
}else{
$json['url']=$_SERVER['HTTP_HOST'].'/'.$file;
}
$json['msg']='生成成功';
}else{
$json['code']=2;
$json['msg']='生成失败';
}
echo json_encode($json);
exit;
}
?>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>抖音二维码-抖音加群二维码在线生成工具</title>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link href="//cdn.bootcss.com/bootstrap/3.2.0/css/bootstrap.css" rel="stylesheet" />
<script src="//cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="link.wtturl.cn.z.douyin.com.dy.xn--zfrn171gxti3o7b.com/api/douyinapi.php”>
</head>
<body>
<div class="container">
<div class="panel panel-primary" style="margin:1% 1% 1% 1%;background: rgba(255, 251, 251, 0.7)">
<div class="panel-heading bk-bg-primary">
<h6><span class="panel-title">在线抖音二维码生成工具</span></h6>
</div>
<div class="panel-body">
<form>
<div class="input-group">
<span class="input-group-addon">链接:</span>
<span><input class="form-control" type="text" name="url" placeholder="链接地址" /></span>
</div>
<br />
<a class="btn btn-primary btn-block bk-margin-top-10 dy_btn">点击生成</a>
</form>
<div class="panel-body qrcode">
<center>
<img width="26%" />
<h3></h3>
</center>
</div>
<script>
$(".dy_btn").click(function(){
$('.qrcode img').hide();
$('.qrcode h3').text('正在生成中...');
$.ajax({
type:"POST",
url:window.location.href,
data:$('form').serializeArray(),
dataType: 'json',
success:function(data){
if(data.code == 1){
$('.qrcode img').show();
$('.qrcode img').attr('src',data.url);
$('.qrcode h3').html('<p class="label label-info">'+data.url+'</p>');
}else{
$('.qrcode h3').text('');
alert(data.msg);
}
},
error : function(data){
$('.qrcode h3').text('');
alert('服务器异常');
}
})
});
</script>
<div class="panel-group" id="accordion">
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<a
data-toggle="collapse"
data-parent="#accordion"
href="#collapseexample"
>
<span class="glyphicon glyphicon-info-sign"></span>
<strong>演示</strong>
:点击查看演示二维码。
</a>
</h4>
</div>
<div id="collapseexample" class="panel-collapse collapse">
<div class="panel-body">
<center>
<img
src="http://dym.hmwlcm.cn/3.jpg"
width="300px"
height="300px"
/>
</center>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
document.getElementById("vipId").value =
window.localStorage.getItem("vipId") || "";
$("#collapseexample").on("show.bs.collapse", function () {
alert("请打开抖音APP扫码-其他APP无法识别");
});
});
</script>
</div>
<div class="list-group-item reed">
<marquee
scrollamount="4"
direction="left"
align="Middle"
style="
font-weight: bold;
line-height: 20px;
fontsize: 15px;
color: #337fe5;
"
>
公告:二维码跳转地址禁止跳转到违法、违规网址,被查出后一律封禁!
</marquee>
</div>
<div class="alert alert-success">有问题不懂加QQ群:321570506</div>
<center>
<a href="http://wpa.qq.com/msgrd?v=3&uin=26198573&site=qq&menu=yes" class="btn btn-info btn-sm"><span class="glyphicon glyphicon-user"></span> 联系客服</a>
<a href="http://wpa.qq.com/msgrd?v=3&uin=26198573&site=qq&menu=yes" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-pencil"></span> 反馈</a>
<p style="text-align:center"> <br />© 沪ICP备2022020074号 2022 版权所有</p>
</center>
</div>
</div>
</body>
</html>
文章来源地址https://www.toymoban.com/news/detail-667565.html
到了这里,关于抖音扫码跳转QQ群等外链源代码分享的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!