摘要: /** * 获得用户的真实IP地址 * * @access public * @return string */function real_ip(){ static $realip = NULL; if ($realip !== NULL) { return $realip; } if (isset 阅读全文
posted @ 2019-02-21 17:54 记忆纳税流年 阅读(293) 评论(0) 推荐(0)
摘要: public function token() { $token = 'token';//微信-客服消息TOKEN(令牌)微信要更改的token必须是这个 $signature = $_GET["signature"]; $timestamp = $_GET["timestamp"]; $nonce 阅读全文
posted @ 2018-10-20 16:25 记忆纳税流年 阅读(980) 评论(0) 推荐(0)
摘要: public function get_accessToken() { $this->_appid = 'wxbd1a2fc08ddb36eb'; $this->secret = 'a9c068624d58926cb23584b4a1559b98'; // access_token 应该全局存储与更 阅读全文
posted @ 2018-10-20 16:25 记忆纳税流年 阅读(1603) 评论(0) 推荐(0)
摘要: 一、搭建Apache( 每复制一个相当于新建一个虚拟主机)【 vhosts-conf】 <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "F:/www/console" ServerName 阅读全文
posted @ 2018-10-11 11:29 记忆纳税流年 阅读(264) 评论(0) 推荐(0)
摘要: 数组排序$sort = array_column($list, 'uv');array_multisort($sort, SORT_DESC, $list);数组分页(用tp分页) $list_print = $list;$count = count($list);$page_num = 20;$Page = new \Think\Page($count, $page_num);$list = a... 阅读全文
posted @ 2018-09-29 12:11 记忆纳税流年 阅读(181) 评论(0) 推荐(0)