添加后台代理代码
This commit is contained in:
BIN
codes/agent/game/api/sample/mobilepay/android.apk
Normal file
BIN
codes/agent/game/api/sample/mobilepay/android.apk
Normal file
Binary file not shown.
67
codes/agent/game/api/sample/mobilepay/index.php
Normal file
67
codes/agent/game/api/sample/mobilepay/index.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="./jquery.min.js"></script>
|
||||
<style>
|
||||
#weixinTip{
|
||||
position:fixed;
|
||||
top:0;
|
||||
left:0;
|
||||
bottom:0;
|
||||
right:0;
|
||||
z-index: 999;
|
||||
display: none;
|
||||
background-color:rgba(0,0,0,0.8);
|
||||
filter:alpha(opacity=80);
|
||||
}
|
||||
|
||||
#weixinTip p{
|
||||
text-align:center;
|
||||
margin-top:10%;
|
||||
padding-left:5%;
|
||||
padding-right:5%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<!--<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">-->
|
||||
<body>
|
||||
<header class="yl_logo" style="text-align: center; ">
|
||||
<img src="./yl.png" style="display: block;max-width: 100%;height: auto; margin: 18% auto;">
|
||||
</header>
|
||||
<div id="weixinTip"><p><img src="./live_weixin.png" alt="微信打开"/></p></div>
|
||||
|
||||
<script>
|
||||
/// 是否微信打开
|
||||
function is_wechat() {
|
||||
return 'undefined' != typeof WeixinJSBridge;
|
||||
}
|
||||
|
||||
function download(filename) {
|
||||
if (is_wechat()) { /// 如果是微信打开
|
||||
$('#weixinTip').show();
|
||||
} else {
|
||||
window.location = filename;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if (strcasecmp('android', $_REQUEST['file']) == 0)
|
||||
$filename = 'android.apk';
|
||||
elseif (strcasecmp('ios', $_REQUEST['file']) == 0)
|
||||
$filename = 'ios.ipz';
|
||||
else
|
||||
$filename = $_SERVER['PHP_SELF'];
|
||||
|
||||
///header('Content-Type: application/force-download');
|
||||
///header('Content-Disposition: attachment; filename=' . basename($filename));
|
||||
///readfile($filename);
|
||||
|
||||
echo "<center><button style=' padding: 6px 12px; display: block; height: 160px; width: 67%; margin-top: 20%;font-size: 68px;' onclick=\"download('{$filename}')\">下载</button></center>";
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
2394
codes/agent/game/api/sample/mobilepay/jquery.min.js
vendored
Normal file
2394
codes/agent/game/api/sample/mobilepay/jquery.min.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
codes/agent/game/api/sample/mobilepay/live_weixin.png
Normal file
BIN
codes/agent/game/api/sample/mobilepay/live_weixin.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
codes/agent/game/api/sample/mobilepay/yl.png
Normal file
BIN
codes/agent/game/api/sample/mobilepay/yl.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Reference in New Issue
Block a user