/** * 获取客户端IP地址 * @param integer $type 返回类型 0 返回IP地址 1 返回IPV4地址数字 * @return mixed */ public static function get_client_ip($type = 0) { return Request::ip($type); }