This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //微信版本比较函数 | |
| var versioncompare = function(curver, targetver){ | |
| if (curver === null || targetver === null) { | |
| return false; | |
| } | |
| //这里使用没有过滤.的字符串,纯数字不好比较 | |
| var curverarr = curver.split('.'); | |
| var targetverarr = targetver.split('.'); | |
| console.log("current version number array is: " + curverarr); | |
| for (var i = 0; i < curverarr.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 通用函数 curl_get v1.0 | |
| function curl_get($url, $vars, $second = 30, $aHeader = array()) { | |
| $ch = curl_init(); | |
| //超时时间 | |
| curl_setopt($ch, CURLOPT_TIMEOUT, $second); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| //这里设置代理,如果有的话 | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | |
| curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $client_ip = gethostbyname($_ENV['COMPUTERNAME']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://mp.soqi.cn/themes/common/fonts/common-icons/iconfont.eot /* IE9*/ /* IE6-IE8 */ | |
| http://mp.soqi.cn/themes/common/fonts/common-icons/iconfont.woff /* chrome、firefox */ | |
| /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ | |
| http://mp.soqi.cn/themes/common/fonts/common-icons/iconfont.ttf | |
| http://mp.soqi.cn/themes/common/fonts/common-icons/iconfont.svg /* iOS 4.1- */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var opened = window.open('http://open.weixin.qq.com/qr/code/?username=<%= StrWeChatCode%>', '_self'); | |
| opened.opener = null; | |
| opened.close(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| weixin://contacts/profile/<%= StrWeChatCode%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://open.weixin.qq.com/qr/code/?username= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static function trimString($value){ | |
| $ret = null; | |
| if (null != $value) { | |
| $ret = $value; | |
| if (strlen($ret) == 0) { | |
| $ret = null; | |
| } | |
| } | |
| return $ret; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| var _system={ | |
| $:function(id){ | |
| return document.getElementById(id); | |
| }, | |
| _client:function(){ | |
| return {w:document.documentElement.scrollWidth,h:document.documentElement.scrollHeight,bw:document.documentElement.clientWidth,bh:document.documentElement.clientHeight}; | |
| }, | |
| _scroll:function(){ | |
| return {x:document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft,y:document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 箭头--> | |
| <div class="fuckarr" style="display:<%= StrShowMerchantUserName == StrMerchantModelUserName ? "" : "none"%>;"> | |
| <img alt="" src="CardImages/nav.gif" /> | |
| </div> |