Commit a6ff7bd1 authored by houdong's avatar houdong

baidu统计

parent 7e05460c
......@@ -37,7 +37,7 @@ class PkTopAction extends IdentityAction{
}
} else {
//第二次请求
if (md5($userIdParam . C('login_user_id_salt')) == $key2 || md5('user_id=' . $userIdParam . C('login_user_id_salt')) == $key) {
if (md5($userIdParam . 'abcd4321') == $key2 || md5('user_id=' . $userIdParam .'abcd4321') == $key) {
$userId = $userIdParam;
}
}
......@@ -218,7 +218,14 @@ class PkTopAction extends IdentityAction{
$this->assign('weixin', $weixin);
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
$this->assign('hideShiPan', strpos($ua, 'oppo')||strpos($ua, 'huawei_jt')||strpos($ua, 'tencent_new_simplify') ? 1 : 0);
$hideShiPan=0;
if(strpos($ua, 'oppo')||strpos($ua, 'huawei_jt')||strpos($ua, 'xiaomi')){
$hideShiPan=1;
}
if(I('channel')=='tencent_new_simplify'&&I('version')<'A3.7.9R'){
$hideShiPan=1;
}
$this->assign('hideShiPan',$hideShiPan);
$this->display();
}
......
......@@ -129,8 +129,16 @@ footer 开始
<a href='javascript:;' id="bottomPopImg">2008年被上海证券交易所选为年度投资者教育训练网站</a>
- 曾为腾讯模拟炒股,网易模拟炒股,中金在线模拟炒股提供软件支持
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F14678c95555c4a60bf207c106ffb4058' type='text/javascript'%3E%3C/script%3E"));
// var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
// document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F14678c95555c4a60bf207c106ffb4058' type='text/javascript'%3E%3C/script%3E"));
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?be6b536e55d696417c6ca56f9db0c052";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</span>
</p>
......
......@@ -567,7 +567,7 @@
var scrollHeight = $(document).height(); //当前页面的总高度
var clientHeight = $(this).height(); //当前可视的页面高度
var totalHeight = parseFloat(clientHeight) + parseFloat(scrollTop);
if (scrollHeight - totalHeight < 40) {
if (scrollHeight - totalHeight < 60) {
if (loading==false) {
loading = true;
$(".loading.l_2").click();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment