首先需要判断是否在微信中,然后进入判断会自动跳转到默认浏览器。
<?php
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false ) {//微信内
header("Content-Type: text/plain"); //纯文本格式
header("Content-Disposition: attachment; filename=mtjSystem.app.apk");
header("HTTP/1.1 206 Partial Content");
exit;
}else{
header('Location: https:://baidu');
}
发布者:admin,转转请注明出处:http://www.yc00.com/web/1741135325a4312882.html
评论列表(0条)