摘要:
首先需要安装PHPExcel类,自行百度安装。然后自定义开发: <?php namespace service; use PHPExcel_IOFactory; use PHPExcel; use service\JsonService as Json; use think\Request; cla 阅读全文
摘要:
//生成密码 function sp_password($pw, $pre) { $decor = md5($pre); $mi = md5($pw); return substr($decor, 0, 12) . $mi . substr($decor, -4, 4); } //生成随机数 fun 阅读全文
摘要:
// 获取客户端IP地址 function get_client_ip() { static $ip = NULL; if ($ip !== NULL) return $ip; if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $arr = explode 阅读全文