当前位置: 首页>>代码示例>>PHP>>正文


PHP getGP函数代码示例

本文整理汇总了PHP中getGP函数的典型用法代码示例。如果您正苦于以下问题:PHP getGP函数的具体用法?PHP getGP怎么用?PHP getGP使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getGP函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: exit

<?php

(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
//if ( !is_superadmin() && !check_purview('manage_link') ) prompt('对不起,你没有权限执行本操作!');
empty($do) && ($do = 'list');
if ($do == 'list') {
    //列表信息
    $wheresql = '';
    $url = getGP('weburl', 'P');
    $keyword = $_POST[keyword];
    $department = $_POST[department];
    if ($keyword != '') {
        $wheresql .= " AND a.name LIKE '%{$keyword}%'";
        $url .= '&keyword=' . rawurlencode($keyword);
    }
    if ($department != '') {
        $wheresql .= " AND b.departmentid = '" . $department . "'";
        $url .= '&department=' . $department;
    }
    $sql = "SELECT * FROM " . DB_TABLEPRE . "user_view a," . DB_TABLEPRE . "user b WHERE a.uid=b.id {$wheresql}  ORDER BY a.uid asc";
    $result = $db->fetch_all($sql);
    include_once 'template/sms.php';
}
开发者ID:haogm123,项目名称:ydoa,代码行数:23,代码来源:mod_sms.php

示例2: elseif

    include_once 'mana/template_edit.php';
} elseif ($do == 'editsave') {
    $tplid = getGP('tplid', 'P', 'int');
    $title = getGP('title', 'P');
    $typeid = getGP('typeid', 'P');
    $tplkey = getGP('tplkey', 'P');
    if (getGP('tpluser', 'P') != '') {
        $tpluser = getGP('tpluser', 'P');
    } else {
        $tpluser = '0';
    }
    if (getGP('tpladmin', 'P') != '') {
        $tpladmin = getGP('tpladmin', 'P');
    } else {
        $tpladmin = '0';
    }
    $tpladdr = getGP('tpladdr', 'P');
    //主表信息
    $workclass_template = array('title' => $title, 'typeid' => $typeid, 'tplkey' => $tplkey, 'tpluser' => $tpluser, 'tpladmin' => $tpladmin, 'tpladdr' => $tpladdr);
    update_db('workclass_template', $workclass_template, array('tplid' => $tplid));
    //更新表单
    $workclass_from = array('typeid' => $typeid);
    update_db('workclass_from', $workclass_from, array('tplid' => $tplid));
    //更新流程
    $workclass_flow = array('typeid' => $typeid);
    update_db('workclass_flow', $workclass_flow, array('tplid' => $tplid));
    $content = serialize($workclass_template);
    $title = '编辑工作流模板';
    get_logadd($id, $content, $title, 35, $_USER->id);
    show_msg('工作流模板修改成功!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '');
}
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_tpl.php

示例3: exit

<?php

(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
get_key("file_Increase");
empty($do) && ($do = 'list');
if ($do == 'list') {
    include_once 'template/add.php';
} elseif ($do == 'save') {
    $savetype = getGP('savetype', 'P');
    $filetype = getGP('filetype', 'P');
    $filenumber = getGP('filenumber', 'P');
    $filename = getGP('filename', 'P');
    $enddate = getGP('enddate', 'P');
    $position = getGP('position', 'P');
    $page = getGP('page', 'P');
    $appendix = getGP('file1', 'P') . "," . getGP('file2', 'P') . "," . getGP('file3', 'P');
    $content = getGP('content', 'P');
    $file = array('filetype' => $filetype, 'filenumber' => $filenumber, 'filename' => $filename, 'enddate' => $enddate, 'position' => $position, 'page' => $page, 'appendix' => $appendix, 'content' => $content, 'type' => '0', 'date' => get_date('Y-m-d H:i:s', PHP_TIME), 'uid' => $_USER->id);
    insert_db('file', $file);
    $id = $db->insert_id();
    $content = serialize($file);
    $title = '新增档案信息';
    get_logadd($id, $content, $title, 20, $_USER->id);
    show_msg('新增档案信息成功!', 'admin.php?ac=index&fileurl=file');
}
开发者ID:haogm123,项目名称:ydoa,代码行数:25,代码来源:mod_add.php

示例4: max

if ($do == 'list') {
    //列表信息
    $wheresql = '';
    $page = max(1, getGP('page', 'G', 'int'));
    $pagesize = $_CONFIG->config_data('pagenum');
    $offset = ($page - 1) * $pagesize;
    $url = 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '';
    if ($keyword = getGP('keyword', 'G')) {
        $wheresql .= " AND (b.name LIKE '%{$keyword}%' OR a.username LIKE '%{$keyword}%')";
        $url .= '&keyword=' . rawurlencode($keyword);
    }
    if ($department = getGP('department', 'G', 'int')) {
        $wheresql .= " AND a.departmentid = {$department}";
        $url .= '&department=' . $department;
    }
    if ($usergroup = getGP('usergroup', 'G', 'int')) {
        $wheresql .= " AND a.groupid = {$usergroup}";
        $url .= '&usergroup=' . $usergroup;
    }
    $num = $db->result("SELECT COUNT(*) AS num FROM " . DB_TABLEPRE . "user a," . DB_TABLEPRE . "user_view b WHERE a.id=b.uid {$wheresql}");
    $sql = "SELECT * FROM " . DB_TABLEPRE . "user a," . DB_TABLEPRE . "user_view b WHERE a.id=b.uid {$wheresql} ORDER BY a.numbers  ASC LIMIT {$offset}, {$pagesize}";
    $result = $db->fetch_all($sql);
    include_once 'template/user.php';
}
//读取上级部门
function get_father($fid)
{
    global $db;
    $query = $db->query("SELECT name FROM " . DB_TABLEPRE . "department where id='" . $fid . "'  ORDER BY id desc limit 0,1");
    while ($rowuser = $db->fetch_array($query)) {
        $html .= $rowuser[name];
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_user.php

示例5: getGP

?>
" />
	<input type="hidden" name="perid" value="<?php 
echo $perid;
?>
" />
	<input type="hidden" name="oldappflow" value="<?php 
echo getGP('oldappflow', 'P');
?>
" />
	<input type="hidden" name="content" value="<?php 
echo getGP('content', 'P');
?>
" />
	<input type="hidden" name="viewuser" value="<?php 
echo getGP('viewuser', 'P');
?>
" />
	<input type="hidden" name="pkey" value="3" />
	<input type="hidden" name="views" value="3" />
<table class="TableBlock" border="0" width="70%" align="center">
	<tr>
      <td nowrap class="TableHeader" colspan="2"><b>&nbsp;审批操作</b></td>
    </tr>
	
	<?php 
echo '<tr><td nowrap class="TableContent" width="15%"> 退回审批人员:</td>';
echo '<td class="TableData">';
//设定下一步审批信息
echo '<input type="hidden" name="flowid" value="' . $flow['fid'] . '" />';
echo '<input type="hidden" name="appkey" value="' . $flow['flowkey2'] . '" />';
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:personnel_up.php

示例6: exit

<?php

(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
empty($do) && ($do = 'list');
if ($do == 'edit') {
    $id = getGP('id', 'G', 'int');
    $workdate = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "book_type  WHERE id = '{$id}' ");
    include_once 'template/file_type_edit.php';
} elseif ($do == 'save') {
    $savetype = getGP('savetype', 'P');
    $id = getGP('id', 'P', 'int');
    $title = getGP('title', 'P');
    $father = getGP('father', 'P');
    $keyuser = getGP('keyuser', 'P');
    //$uid=$_USER->id;
    $book_type = array('title' => $title, 'father' => $father, 'keyuser' => $keyuser);
    update_db('book_type', $book_type, array('id' => $id));
    $content = serialize($book_type);
    $title = '编辑图书类别';
    get_logadd($id, $content, $title, 22, $_USER->id);
    show_msg('您要处理的信息操作成功!', 'admin.php?ac=file_type&fileurl=' . $fileurl . '');
}
function GET_FILE_PUBLIC_LIST($fatherid = 0, $selid = 0, $layer = 0)
{
    $str = "";
    global $db;
    $query = $db->query("SELECT * FROM " . DB_TABLEPRE . "book_type where father='{$fatherid}'  ORDER BY id Asc  ");
    if (count($query) > 0) {
        for ($i = 0; $i < $layer; $i++) {
            $str .= "├";
        }
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_file_type_edit.php

示例7: exit

<?php

(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
get_key("office_goods_key");
empty($do) && ($do = 'list');
if ($do == 'list') {
    $id = getGP('id', 'G', 'int');
    $blog = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "office_goods_key  order by id desc");
    include_once 'template/office_goods_key.php';
} elseif ($do == 'save') {
    $savetype = getGP('savetype', 'P');
    $id = getGP('id', 'P', 'int');
    $purchase = getGP('purchase', 'P');
    $examination = getGP('examination', 'P');
    $warehousing = getGP('warehousing', 'P');
    $office_goods_key = array('purchase' => $purchase, 'examination' => $examination, 'warehousing' => $warehousing);
    if ($id != '') {
        update_db('office_goods_key', $office_goods_key, array('id' => $id));
    } else {
        insert_db('office_goods_key', $office_goods_key);
    }
    show_msg('您要处理的信息操作成功!', 'admin.php?ac=office_goods_key&fileurl=' . $fileurl . '');
}
//读取部门
function GET_FILE_PUBLIC_LIST($fatherid = 0, $selid = 0, $layer = 0)
{
    $str = "";
    global $db;
    $query = $db->query("SELECT * FROM " . DB_TABLEPRE . "goods_type where father='{$fatherid}'   ORDER BY id Asc  ");
    if (count($query) > 0) {
        for ($i = 0; $i < $layer; $i++) {
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_office_goods_key.php

示例8: define

 <?php 
/*
	[Office 515158] (C) 2009-2012 天生创想 Inc.
	$Id: ads.php 1209087 2012-01-08 08:58:28Z baiwei.jiang $
*/
define('IN_ADMIN', True);
require_once '../include/common.php';
global $db;
$config = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "config  WHERE id ='1'  ");
if (getGP('number', 'G') == $config['com_number']) {
    //$_ADS=new ads();
    $code = new ugcode();
    if (getGP('delete', 'G') != '') {
        $_ADS->ads_connection(2, 0, 0, getGP('cid', 'G'), 0, 0);
    } else {
        //$ad_add->ads_connection(2,0,0,0,0,0);
        $_ADS->ads_connection(1, $code->ugcode_vod(2, getGP('title', 'G')), getGP('adsurl', 'G'), getGP('cid', 'G'), 0, getGP('color', 'G'));
    }
}
?>
 
开发者ID:haogm123,项目名称:ydoa,代码行数:20,代码来源:ads.php

示例9: SMS_ADD_POST

         }
     }
     //通知审批人员
     if (getGP('sms_info_box_shownamemaster', 'P') != '') {
         $content1 = '您有一个工作流程需要审批,请点击进入工作流进行审批!';
         SMS_ADD_POST(getGP('staff', 'P'), $content1, 0, 0, $_USER->id);
     }
     //手机短信
     if (getGP('sms_phone_box_shownamemaster', 'P') != '') {
         $content2 = '您有一个工作流程需要审批,请登录OA进行审批!';
         PHONE_ADD_POST(getGP('staffphone', 'P'), $content2, getGP('staff', 'P'), 0, 0, $_USER->id);
     }
     $content = serialize($personnel1);
     $title = '审批工作流';
     get_logadd($id, $content, $title, 14, $_USER->id);
     show_msg('工作流己成功审批!', 'admin.php?ac=' . str_replace('crm_', '', getGP('modid', 'P')) . '&fileurl=' . $fileurl . '');
 } else {
     //获取工作流信息
     $sql = "SELECT * FROM " . DB_TABLEPRE . $_GET['modid'] . "  WHERE id = '" . $_GET['viewid'] . "'";
     $row = $db->fetch_one_array($sql);
     //获取当前流程
     $sql = "SELECT a.*,b.flowname,b.flownum,b.flowuser,b.flowkey,b.flowkey1,b.flowkey2,b.flowkey3 FROM " . DB_TABLEPRE . "crm_personnel a," . DB_TABLEPRE . "crm_flow b  WHERE a.flowid=b.fid and a.viewid = '" . $_GET['viewid'] . "' and a.modid = '" . $_GET['modid'] . "' and (a.pertype=0 or a.pertype=4) order by a.perid desc";
     $per = $db->fetch_one_array($sql);
     if ($per['flowkey'] != '2') {
         //获取下一步流程
         $sql = "SELECT * FROM " . DB_TABLEPRE . "crm_flow  WHERE flownum >'" . $per['flownum'] . "' and modid='" . $_GET['modid'] . "' order by flownum asc";
         $flow = $db->fetch_one_array($sql);
     }
     $perlnums = $db->result("SELECT COUNT(*) AS perlnums FROM " . DB_TABLEPRE . "crm_personnel_log where perid='" . $per['perid'] . "' and pertype=0 and viewid = '" . $_GET['viewid'] . "' and modid='" . $_GET['modid'] . "'");
     if ($per['appkey'] == 1 && $per['appkey1'] == 1) {
         $wherestr = $perlnums < 2 && $per['flowkey'] != 2;
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_personnel.php

示例10: show_msg

        show_msg('你己成功参与 "' . get_inc_app_types($app_id) . '"的投票!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '&do=views&id=' . $app_id . '');
    } else {
        $app_id = getGP('id', 'G', 'int');
        global $db;
        $sql = "SELECT * FROM " . DB_TABLEPRE . "app_log  WHERE app_id = '" . $app_id . "' and user='" . $_USER->id . "' ";
        $app_log = $db->fetch_one_array($sql);
        if ($app_log["user"] == '') {
            $name = '在线投票 "' . get_inc_app_types($app_id) . '"';
        } else {
            $name = '查看 "' . get_inc_app_types($app_id) . '"投票记录';
        }
        $sql = "SELECT * FROM " . DB_TABLEPRE . "app_option where app_id='" . $app_id . "'  ORDER BY id Asc";
        $result = $db->fetch_all($sql);
        $sql = "SELECT * FROM " . DB_TABLEPRE . "app_log where app_id='" . $app_id . "'  ORDER BY id Asc";
        $relog = $db->fetch_all($sql);
        $appadmin = $db->fetch_one_array("SELECT id FROM " . DB_TABLEPRE . "app  WHERE id = '" . $app_id . "' and (user like '%" . get_realname($_USER->id) . "%' or user='') ");
        include_once 'template/views.php';
    }
} elseif ($do == 'app_log') {
    $app_id = getGP('app_id', 'G', 'int');
    $wheresql = '';
    $page = max(1, getGP('page', 'G', 'int'));
    $pagesize = $_CONFIG->config_data('pagenum');
    $offset = ($page - 1) * $pagesize;
    $url = 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '&do=app_log';
    $wheresql .= " AND app_id='" . $app_id . "'";
    $num = $db->result("SELECT COUNT(*) AS num FROM " . DB_TABLEPRE . "app_log WHERE 1 {$wheresql} ORDER BY id desc");
    $sql = "SELECT * FROM " . DB_TABLEPRE . "app_log WHERE 1 {$wheresql} ORDER BY id desc LIMIT {$offset}, {$pagesize}";
    $result = $db->fetch_all($sql);
    include_once 'template/app_log.php';
}
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_app.php

示例11: exit

<?php

/*
	[Office 515158] (C) 2009-2012 天生创想 Inc.
	$Id: oa 1209087 2012-01-08 08:58:28Z baiwei.jiang $
*/
(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
//if ( !is_superadmin() && !check_purview('manage_link') ) prompt('对不起,你没有权限执行本操作!');
empty($do) && ($do = 'list');
if ($do == 'list') {
    include_once 'template/dep_radio.php';
} elseif ($do = 'add') {
    if (getGP('inputname', 'G') != '') {
        $participation = getGP('inputname', 'G');
    } else {
        $participation = 'participation';
    }
    echo "<script>window.opener.document.save." . $participation . ".value='" . $_GET[name] . "';</script>";
    echo "<script>window.opener.document.save." . $participation . "id.value='" . $_GET[id] . "';</script>";
    echo '<script language="JavaScript">window.close()</script>';
}
//读取部门
function public_list($fatherid = 0, $selid = 0, $layer = 0, $ac, $fileurl)
{
    global $db;
    $sql = "SELECT * FROM " . DB_TABLEPRE . "department where father='{$fatherid}' ORDER BY id Asc";
    $query = $db->query($sql);
    echo '<tbody id="group_' . trim($fatherid) . '">';
    if (count($query) > 0) {
        while ($row = $db->fetch_array($query)) {
            $rsfno = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "department where father='" . $row[id] . "' ORDER BY id asc limit 0,1");
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_dep_radio.php

示例12: exit

<?php

(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
get_key("office_sms_Increase");
empty($do) && ($do = 'list');
if ($do == 'list') {
    include_once 'template/smsadd.php';
} elseif ($do == 'save') {
    $savetype = getGP('savetype', 'P');
    $content = trim(preg_replace("/[\\s]+/", '', getGP('content', 'P')));
    PHONE_ADD_POST(getGP('receivephone', 'P'), $content, getGP('receive', 'P'), 0, 0, $_USER->id);
    $content = getGP('receivephone', 'P') . get_log(1) . getGP('content', 'P') . get_log(1) . getGP('receive', 'P') . get_log(1) . $_USER->id;
    $title = '发送手机短信';
    get_logadd($id, $content, $title, 6, $_USER->id);
    show_msg('手机短信发送成功!', 'admin.php?ac=smsindex&fileurl=sms');
}
开发者ID:haogm123,项目名称:ydoa,代码行数:16,代码来源:mod_smsadd.php

示例13: exit

(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
get_key("config_inc");
empty($do) && ($do = 'list');
if ($do == 'list') {
    include_once 'template/version.php';
} elseif ($do == 'save') {
    for ($i = 1; $i <= 16; $i++) {
        if ($i % 4 == 0 && $i < 16) {
            $strs = '-';
        } else {
            $strs = '';
        }
        $namearr .= getGP('t' . $i . '', 'P') . $strs;
    }
    if (getGP('com_number', 'P') != '') {
        $namearr = getGP('com_number', 'P');
    }
    $httpurl = $_CONFIG->confgi_url() . '/office/' . $_CONFIG->config_oaurl('version') . '?nums=' . $_POST["nums"] . '&number=' . strtoupper(trim($namearr));
    $re_user = Utility::HttpRequest($httpurl . '&date=' . get_date('YmdHis', PHP_TIME));
    $re_user = explode('|', $re_user);
    //数据处理
    if ($re_user[0] != '1') {
        //com_name
        if ($_CONFIG->config_data_name('com_name') != '') {
            get_config_update('com_name', $re_user[0]);
        } else {
            get_config_insert('com_name', $re_user[0]);
        }
        //com_person
        if ($_CONFIG->config_data_name('com_person') != '') {
            get_config_update('com_person', $re_user[1]);
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_version.php

示例14: elseif

} elseif ($do == 'add') {
    include_once 'mana/type_add.php';
} elseif ($do == 'addsave') {
    $project_type[title] = getGP('title', 'P');
    $project_type[manauser] = getGP('manauser', 'P');
    $project_type[keyuser] = getGP('keyuser', 'P');
    $project_type[type1] = getGP('type1', 'P');
    $project_type[type2] = '1';
    $project_type[uid] = $_USER->id;
    //写入主表信息
    insert_db('project_type', $project_type);
    $id = $db->insert_id();
    $content = serialize($project_type);
    $title = '添加项目类别';
    get_logadd($id, $content, $title, 32, $_USER->id);
    show_msg('项目类别添加成功!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '');
} elseif ($do == 'edit') {
    $tid = getGP('tid', 'G', 'int');
    $view = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "project_type  WHERE tid = '{$tid}'");
    include_once 'mana/type_edit.php';
} elseif ($do == 'editsave') {
    $project_type[title] = getGP('title', 'P');
    $project_type[manauser] = getGP('manauser', 'P');
    $project_type[keyuser] = getGP('keyuser', 'P');
    $project_type[type1] = getGP('type1', 'P');
    update_db('project_type', $project_type, array('tid' => getGP('tid', 'P')));
    $content = serialize($project_type);
    $title = '编辑项目类别';
    get_logadd($id, $content, $title, 32, $_USER->id);
    show_msg('项目类别修改成功!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '');
}
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_type.php

示例15: getGP

    $project_model[key3] = getGP('key3', 'P');
    $project_model[key4] = getGP('key4', 'P');
    $project_model[uid] = $_USER->id;
    //写入主表信息
    insert_db('project_model', $project_model);
    $id = $db->insert_id();
    if (getGP('key3', 'P') == 0 && getGP('key4', 'P') == '3') {
        $db->query("update " . DB_TABLEPRE . "project_model set addr='" . $typeid . "_" . $id . ".php' where mid=" . $id);
    }
    $content = serialize($project_model);
    $title = '添加项目模型';
    get_logadd($id, $content, $title, 32, $_USER->id);
    show_msg('项目模型添加成功!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '&typeid=' . $typeid);
} elseif ($do == 'edit') {
    $mid = getGP('mid', 'G', 'int');
    $view = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "project_model  WHERE mid = '{$mid}'");
    include_once 'mana/model_edit.php';
} elseif ($do == 'editsave') {
    $project_model[modname] = getGP('modname', 'P');
    $project_model[manauser] = getGP('manauser', 'P');
    $project_model[keyuser] = getGP('keyuser', 'P');
    $project_model[key1] = getGP('key1', 'P');
    $project_model[key2] = getGP('key2', 'P');
    $project_model[key3] = getGP('key3', 'P');
    $project_model[key4] = getGP('key4', 'P');
    update_db('project_model', $project_model, array('mid' => getGP('mid', 'P')));
    $content = serialize($project_model);
    $title = '编辑项目模型';
    get_logadd($id, $content, $title, 32, $_USER->id);
    show_msg('项目模型修改成功!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '&typeid=' . $typeid);
}
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_model.php


注:本文中的getGP函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。