Merge branch 'dev' of 47.111.118.107:/srv/git/platform into dev

master
ELF 5 years ago
commit 120f024629

@ -146,14 +146,6 @@ class SsgController extends BaseController {
$this->display(); $this->display();
} }
// 支付页面
public function alipay($data) {
$this->assign("url", $data['url']);
$this->assign("price", $data['price']);
$this->display();
}
public function timediffs($begin_time, $end_time) { public function timediffs($begin_time, $end_time) {
if ($begin_time < $end_time) { if ($begin_time < $end_time) {
$starttime = $begin_time; $starttime = $begin_time;

@ -11,7 +11,7 @@
<body> <body>
<div class="page-container "> <div class="page-container ">
<div class="top"> <div class="top">
<a href="javascript:history.go(-1);"></a><a href="{:U('order')}" class="link">订单查询</a> <a href="javascript:history.go(-1);"></a>至尊版购买<a href="{:U('order')}" class="link">订单查询</a>
</div> </div>
<style> <style>
.interval { .interval {
@ -54,12 +54,12 @@
</dl> </dl>
</li> </li>
</volist> </volist>
</ul> </ul>
<input type="hidden" id="hdGameID" value="{$data_list[0]['game_id']}"> <input type="hidden" id="hdGameID" value="{$data_list[0]['game_id']}">
<input type="hidden" id="orderStatus" value="{$data_list[0]['pay_status']}"> <input type="hidden" id="orderStatus" value="{$data_list[0]['pay_status']}">
<script> <script>
</script> </script>
</div> </div>
</div> </div>
@ -110,5 +110,4 @@
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script> <script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/ssg/common.js" type="text/javascript"></script> <script src="__JS__/ssg/common.js" type="text/javascript"></script>
</body> </body>
</html> </html>

@ -132,7 +132,10 @@ class Ipa365Controller extends BaseController{
$param['notifyurl'] = "https://api.wmtxkj.com/callback.php/Notify/notify/apitype/alipay"; $param['notifyurl'] = "https://api.wmtxkj.com/callback.php/Notify/notify/apitype/alipay";
$ret = $this->alipay($param); $ret = $this->alipay($param);
$_SESSION['paytip_price']=self::signprice;
$_SESSION['paytip_order_id']=$orderId;
$_SESSION['paytip_url']=$ret['url'];
$this->assign("price", self::signprice); $this->assign("price", self::signprice);
$this->assign("url", $ret['url']); $this->assign("url", $ret['url']);
$this->assign("order_id", $orderId); $this->assign("order_id", $orderId);
@ -141,7 +144,15 @@ class Ipa365Controller extends BaseController{
$this->display(); $this->display();
} }
public function paytip(){
$this->assign("price", $_SESSION['paytip_price']);
$this->assign("url", $_SESSION['paytip_url']);
$this->assign("order_id", $_SESSION['paytip_order_id']);
//$this->assign("jump_url",$jump_url);
$this->display();
}
/** /**
* 下载页面 判断订单是否支付成功 * 下载页面 判断订单是否支付成功
*/ */

@ -9,81 +9,100 @@
<meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="email=no"> <meta name="format-detection" content="email=no">
<meta name="viewport" <meta name="viewport"
content="initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no"> content="initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>支付中心-网上支付 安全快速!</title> <title>支付中心-网上支付 安全快速!</title>
<link href="__IMG__/ssg/favicon.ico" type="image/x-icon" rel="shortcut icon"> <link href="__IMG__/ssg/favicon.ico" type="image/x-icon" rel="shortcut icon">
<link href="__CSS__/ssg/pay-center.css" rel="stylesheet" type="text/css"> <link href="__CSS__/ssg/pay-center.css" rel="stylesheet" type="text/css">
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script> <script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/jquery.base64.js" type="text/javascript"></script>
</head> </head>
<body> <body>
<div class="topbar"> <div class="topbar">
<div class="topcon auto"> <div class="topcon auto">
<h1 class="pay-logo"> <h1 class="pay-logo">
<img src="__IMG__/ssg/alipay/pay-logo.png" alt="Logo"></h1> <img src="__IMG__/ssg/alipay/pay-logo.png" alt="Logo"></h1>
</div>
</div> </div>
<div class="container-pay"> </div>
<div class="auto"> <div class="container-pay">
<div class="orders-summary"> <div class="auto">
<div class="orders-name">超级签购买</div> <div class="orders-summary">
<div class="orders-desc">订单描述:<span>{$order_id}</span></div> <div class="orders-name">超级签购买</div>
<div class="total-money">应付金额:<strong>{$price}</strong></div> <div class="orders-desc">订单描述:<span>{$order_id}</span></div>
</div> <div class="total-money">应付金额:<strong>{$price}</strong></div>
<div class="order-checkbank"> </div>
<div class="order-checkbank-con"> <div class="order-checkbank">
<div class="order-checkbank-tit">请选择付款方式:</div> <div class="order-checkbank-con">
<ul class="order-checkbank-list"> <div class="order-checkbank-tit">请选择付款方式:</div>
<li> <ul class="order-checkbank-list">
<a href="{$url}" <li>
title="支付宝"> <a href="{$url}"
<img src="__IMG__/ssg/alipay/zfb-icon.png" alt="支付宝"> title="支付宝">
</a> <img src="__IMG__/ssg/alipay/zfb-icon.png" alt="支付宝">
</li> </a>
</li>
</ul> </ul>
</div> </div>
<div class="order-checkbank-mid"> <div class="order-checkbank-mid">
<p class="odd">请选择支付方式。建议选择使用支付宝、微信支付、银行卡,支付请直接点击相应付款按钮。如果您使用支付宝账户支付,请点击“支付宝”按钮。</p> <p class="odd">请选择支付方式。建议选择使用支付宝、微信支付、银行卡,支付请直接点击相应付款按钮。如果您使用支付宝账户支付,请点击“支付宝”按钮。</p>
<p class="odd">如果您选择支付宝、微信支付、银行卡支付时,请遵守相关支付宝、微信支付、财付通的规定进行操作。您在支付宝、微信支付、财付通页面上进行的任何操作及其产生的</p> <p class="odd">如果您选择支付宝、微信支付、银行卡支付时,请遵守相关支付宝、微信支付、财付通的规定进行操作。您在支付宝、微信支付、财付通页面上进行的任何操作及其产生的</p>
<p>任何法律后果,将按照您与支付宝、微信支付、银行卡之间签订的合同处理。本网站不承担任何责任。</p> <p>任何法律后果,将按照您与支付宝、微信支付、银行卡之间签订的合同处理。本网站不承担任何责任。</p>
</div>
</div> </div>
</div> </div>
</div> </div>
<!-- 触屏订单通道 --> </div>
<div class="m-order hidden"> <!-- 触屏订单通道 -->
<div class="m-order-base"> <div class="m-order hidden">
<div class="m-order-item"> <div class="m-order-base">
<label>订单名称:</label><span>超级签购买</span> <div class="m-order-item">
</div> <label>订单名称:</label><span>超级签购买</span>
<div class="m-order-item">
<label>订单金额:</label><span>{$price}元</span>
</div>
</div> </div>
<div class="m-order-payinfo"> <div class="m-order-item">
<div class="payinfo-tit"> <label>订单金额:</label><span>{$price}元</span>
<label>还需支付: </label>
<span>{$price}元</span>
</div>
<a class="order-payinfo-item"
href="{$url}"
title="支付宝">
<div class="order-payinfo-icon">
<img src="__IMG__/ssg/alipay/zfb-pic.jpg" alt="支付宝">
</div>
<div class="order-payinfo-con">
<div class="pay-title">支付宝</div>
<div class="pay-meta">支持支付宝</div>
</div>
</a>
</div> </div>
</div> </div>
<div class="footer-pay"> <div class="m-order-payinfo">
<p>版权所有 ©2016 支付中心</p> <div class="payinfo-tit">
<label>还需支付: </label>
<span>{$price}元</span>
</div>
<a class="order-payinfo-item"
href="#;" onclick="jump('{$url}')"
title="支付宝">
<div class="order-payinfo-icon">
<img src="__IMG__/ssg/alipay/zfb-pic.jpg" alt="支付宝">
</div>
<div class="order-payinfo-con">
<div class="pay-title">支付宝</div>
<div class="pay-meta">支持支付宝</div>
</div>
</a>
</div> </div>
</div>
<div class="footer-pay">
<p>海南万盟天下科技有限公司 版权所有 ©2019 支付中心</p>
</div>
</body> </body>
<script>
function jump($pay_url) {
if(isWeiXin()){
window.location.href = "/sdk.php/Ipa365/paytip";
}else{
window.location.href=$pay_url;
}
}
//判断是否是微信浏览器的函数
function isWeiXin(){
//window.navigator.userAgent属性包含了浏览器类型、版本、操作系统类型、浏览器引擎类型等信息这个属性可以用来判断浏览器类型
var ua = window.navigator.userAgent.toLowerCase();
//通过正则表达式匹配ua中是否含有MicroMessenger字符串
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
return true;
}else{
return false;
}
}
</script>
</html> </html>

@ -0,0 +1,77 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>微信打开支付提示</title>
<link href="__CSS__/ssg/common.css" rel="stylesheet" type="text/css">
<!--<link href="./img/favicon.ico" type="image/x-icon" rel="shortcut icon">-->
<link href="__CSS__/ssg/pay-center.css" rel="stylesheet" type="text/css">
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/jquery.base64.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
if(isWeiXin()==false){
//window.location.href='{$url}';
}
});
//判断是否是微信浏览器的函数
function isWeiXin(){
//window.navigator.userAgent属性包含了浏览器类型、版本、操作系统类型、浏览器引擎类型等信息这个属性可以用来判断浏览器类型
var ua = window.navigator.userAgent.toLowerCase();
//通过正则表达式匹配ua中是否含有MicroMessenger字符串
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
return true;
}else{
return false;
}
}
</script>
</head>
<body>
<div class="topbar">
<div class="topcon auto">
<h1 class="pay-logo">
<img src="__IMG__/ssg/alipay/pay-logo.png" alt="Logo"></h1>
</div>
</div>
<div class="m-order hidden">
<div class="m-order-base">
<div class="m-order-item">
<label>收款方:</label><span>天下游戏平台</span>
</div>
<div class="m-order-item">
<label>订单号:</label><span>{$order_id}</span>
</div>
<div class="m-order-item">
<label>商品名称:</label><span>超级签购买</span>
</div>
<div class="m-order-item">
<label>商品描述:</label><span>{$url}</span>
</div>
<div class="m-order-item">
<label>交易金额:</label><span>{$price}元</span>
</div>
</div>
<div class="m-order-qrcode">
<div class="m-weixin-alipay-hintinfo">由于微信不支持支付宝直接支付请点击微信右上角菜单在Safari中打开</div>
<!--<div class="m-weixin-alipay-qrcode-foot">
<a class="fail-pay" href="http://apipay.37376.com/pay/payreturn?TradeNo=201909231287512597767135279&amp;SignatureStamp=1569242244&amp;SignatureMD5=256B903183112B9BA4A826E579E89142">支付遇到问题</a>
<a class="success-pay" href="http://apipay.37376.com/pay/payreturn?TradeNo=201909231287512597767135279&amp;SignatureStamp=1569242244&amp;SignatureMD5=256B903183112B9BA4A826E579E89142">支付完成</a>
</div>-->
</div>
</div>
<div class="footer-pay">
<p>海南万盟天下科技有限公司 版权所有 ©2019 支付中心</p>
</div>
</body>
</html>

@ -1,86 +1,99 @@
$(function() { $(function() {
remInit(100, 375); remInit(100, 375);
selectProductInit(); selectProductInit();
copyInit(); copyInit();
close_page();
}); });
function remInit(screenSize, picSize) { function close_page(){
$(window) window.onbeforeunload = onbeforeunload_handler;
.on("resize", function(e) { //window.onunload = onunload_handler;
var $body = $("body");
var browser_width = $body.width();
var browser_height = $body.height();
var htmlWidth = picSize;
var remResize;
if (browser_width > browser_height) {
remResize =
document.documentElement.clientHeight || document.body.clientHeight;
//$uiBox.addClass("horizontal");
} else {
remResize =
document.documentElement.clientWidth || document.body.clientWidth;
//$uiBox.removeClass("horizontal");
}
var size = ((remResize < 768 ? remResize : 768) / htmlWidth) * screenSize;
$("html").css("font-size", size + "px");
})
.trigger("resize");
} }
function selectProductInit() { function onbeforeunload_handler(){
var selectFlag = true; sessionStorage.clear();
var $selectProduct = $(".select-product"); //alert("确认关闭www.someabcd.com?");
if ($selectProduct.length > 0) { //你的业务操作。。。。
if ($selectProduct.find("li").length <= 0) { }
$selectProduct.addClass("no-item");
$selectProduct.find(".title-2 span").text("暂无产品");
} else { function remInit(screenSize, picSize) {
$selectProduct.find("li").on("click", function() { $(window)
var $this = $(this); .on("resize", function(e) {
if ($this.find(".select-btn a").hasClass("current")) { var $body = $("body");
$this.find(".select-btn a").removeClass("current"); var browser_width = $body.width();
} else { var browser_height = $body.height();
$selectProduct.find(".select-btn a").removeClass("current"); var htmlWidth = picSize;
$this.find(".select-btn a").addClass("current"); var remResize;
} if (browser_width > browser_height) {
}); remResize =
$selectProduct.find(".title-2 a").on("click", function() { document.documentElement.clientHeight || document.body.clientHeight;
if (selectFlag) { //$uiBox.addClass("horizontal");
$selectProduct.find(".title-2 span").addClass("current");
$selectProduct.find("li").each(function() {
var $this = $(this);
if ($this.find(".select-btn a").hasClass("current")) {
$this.show();
} else { } else {
$this.hide(); remResize =
document.documentElement.clientWidth || document.body.clientWidth;
//$uiBox.removeClass("horizontal");
} }
}); var size = ((remResize < 768 ? remResize : 768) / htmlWidth) * screenSize;
$("html").css("font-size", size + "px");
})
.trigger("resize");
}
function selectProductInit() {
var selectFlag = true;
var $selectProduct = $(".select-product");
if ($selectProduct.length > 0) {
if ($selectProduct.find("li").length <= 0) {
$selectProduct.addClass("no-item");
$selectProduct.find(".title-2 span").text("暂无产品");
} else { } else {
$selectProduct.find(".title-2 span").removeClass("current"); $selectProduct.find("li").on("click", function() {
$selectProduct.find("li").show(); var $this = $(this);
if ($this.find(".select-btn a").hasClass("current")) {
$this.find(".select-btn a").removeClass("current");
} else {
$selectProduct.find(".select-btn a").removeClass("current");
$this.find(".select-btn a").addClass("current");
}
});
$selectProduct.find(".title-2 a").on("click", function() {
if (selectFlag) {
$selectProduct.find(".title-2 span").addClass("current");
$selectProduct.find("li").each(function() {
var $this = $(this);
if ($this.find(".select-btn a").hasClass("current")) {
$this.show();
} else {
$this.hide();
}
});
} else {
$selectProduct.find(".title-2 span").removeClass("current");
$selectProduct.find("li").show();
}
selectFlag = !selectFlag;
});
} }
selectFlag = !selectFlag;
});
} }
}
} }
function copyInit() { function copyInit() {
if ($(".vip-download").length > 0) { if ($(".vip-download").length > 0) {
$(".gift-list li").each(function() { $(".gift-list li").each(function() {
var $this = $(this); var $this = $(this);
var thisCopyBtn = $this.find(".gift-code a").attr("class"); var thisCopyBtn = $this.find(".gift-code a").attr("class");
var clipboard = new ClipboardJS("." + thisCopyBtn); var clipboard = new ClipboardJS("." + thisCopyBtn);
clipboard.on('success', function (e) { clipboard.on('success', function (e) {
alert("复制成功"); alert("复制成功");
}); });
clipboard.on('error', function (e) { clipboard.on('error', function (e) {
var ua = navigator.userAgent; var ua = navigator.userAgent;
var isIOS = !!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); var isIOS = !!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if (isIOS && ua.match(/os\s+(\d+)/i)[1] - 0 < 10) { if (isIOS && ua.match(/os\s+(\d+)/i)[1] - 0 < 10) {
alert("您的系统版本过低,请手动复制下方地址"); alert("您的系统版本过低,请手动复制下方地址");
} }
});
}); });
}); }
}
} }

@ -0,0 +1,122 @@
/*!
* jquery.base64.js 0.1 - https://github.com/yckart/jquery.base64.js
* Makes Base64 en & -decoding simpler as it is.
*
* Based upon: https://gist.github.com/Yaffle/1284012
*
* Copyright (c) 2012 Yannick Albert (http://yckart.com)
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php).
* 2013/02/10
**/
;(function($) {
var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
a256 = '',
r64 = [256],
r256 = [256],
i = 0;
var UTF8 = {
/**
* Encode multi-byte Unicode string into utf-8 multiple single-byte characters
* (BMP / basic multilingual plane only)
*
* Chars in range U+0080 - U+07FF are encoded in 2 chars, U+0800 - U+FFFF in 3 chars
*
* @param {String} strUni Unicode string to be encoded as UTF-8
* @returns {String} encoded string
*/
encode: function(strUni) {
// use regular expressions & String.replace callback function for better efficiency
// than procedural approaches
var strUtf = strUni.replace(/[\u0080-\u07ff]/g, // U+0080 - U+07FF => 2 bytes 110yyyyy, 10zzzzzz
function(c) {
var cc = c.charCodeAt(0);
return String.fromCharCode(0xc0 | cc >> 6, 0x80 | cc & 0x3f);
})
.replace(/[\u0800-\uffff]/g, // U+0800 - U+FFFF => 3 bytes 1110xxxx, 10yyyyyy, 10zzzzzz
function(c) {
var cc = c.charCodeAt(0);
return String.fromCharCode(0xe0 | cc >> 12, 0x80 | cc >> 6 & 0x3F, 0x80 | cc & 0x3f);
});
return strUtf;
},
/**
* Decode utf-8 encoded string back into multi-byte Unicode characters
*
* @param {String} strUtf UTF-8 string to be decoded back to Unicode
* @returns {String} decoded string
*/
decode: function(strUtf) {
// note: decode 3-byte chars first as decoded 2-byte strings could appear to be 3-byte char!
var strUni = strUtf.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, // 3-byte chars
function(c) { // (note parentheses for precence)
var cc = ((c.charCodeAt(0) & 0x0f) << 12) | ((c.charCodeAt(1) & 0x3f) << 6) | (c.charCodeAt(2) & 0x3f);
return String.fromCharCode(cc);
})
.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g, // 2-byte chars
function(c) { // (note parentheses for precence)
var cc = (c.charCodeAt(0) & 0x1f) << 6 | c.charCodeAt(1) & 0x3f;
return String.fromCharCode(cc);
});
return strUni;
}
};
while(i < 256) {
var c = String.fromCharCode(i);
a256 += c;
r256[i] = i;
r64[i] = b64.indexOf(c);
++i;
}
function code(s, discard, alpha, beta, w1, w2) {
s = String(s);
var buffer = 0,
i = 0,
length = s.length,
result = '',
bitsInBuffer = 0;
while(i < length) {
var c = s.charCodeAt(i);
c = c < 256 ? alpha[c] : -1;
buffer = (buffer << w1) + c;
bitsInBuffer += w1;
while(bitsInBuffer >= w2) {
bitsInBuffer -= w2;
var tmp = buffer >> bitsInBuffer;
result += beta.charAt(tmp);
buffer ^= tmp << bitsInBuffer;
}
++i;
}
if(!discard && bitsInBuffer > 0) result += beta.charAt(buffer << (w2 - bitsInBuffer));
return result;
}
var Plugin = $.base64 = function(dir, input, encode) {
return input ? Plugin[dir](input, encode) : dir ? null : this;
};
Plugin.btoa = Plugin.encode = function(plain, utf8encode) {
plain = Plugin.raw === false || Plugin.utf8encode || utf8encode ? UTF8.encode(plain) : plain;
plain = code(plain, false, r256, b64, 8, 6);
return plain + '===='.slice((plain.length % 4) || 4);
};
Plugin.atob = Plugin.decode = function(coded, utf8decode) {
coded = String(coded).split('=');
var i = coded.length;
do {--i;
coded[i] = code(coded[i], true, r64, a256, 6, 8);
} while (i > 0);
coded = coded.join('');
return Plugin.raw === false || Plugin.utf8decode || utf8decode ? UTF8.decode(coded) : coded;
};
}(jQuery));
Loading…
Cancel
Save