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


PHP CCGetUserID函数代码示例

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


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

示例1: change_password_changepwd1_AfterUpdate

function change_password_changepwd1_AfterUpdate(&$sender)
{
    $change_password_changepwd1_AfterUpdate = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $change_password;
    //Compatibility
    //End change_password_changepwd1_AfterUpdate
    //Custom Code @18-2A29BDB7
    // -------------------------
    $dbw = new clsDBconnection1();
    $sql1 = "update users set user_password ='" . $change_password->changepwd1->confirmpwd->GetValue() . "' where user_id=" . CCGetUserID();
    $dbw->query($sql1);
    //$Result3 = $dbw->next_record();
    if ($dbw->affected_rows() > 0) {
        $change_password->changepwd1->Errors->addError('<div class="alert alert-success">DONE! Password Succesfully Changed! Login with new password to continue...</div>');
        CCLogoutUser();
        CCSetCookie("iRadiologyLogin", "");
    } else {
        $change_password->changepwd1->Errors->addError('<div class="alert">Unable to Change Password! Try Again Later!</div>');
    }
    // -------------------------
    //End Custom Code
    //DEL
    //Close change_password_changepwd1_AfterUpdate @8-7BFDFC76
    return $change_password_changepwd1_AfterUpdate;
}
开发者ID:Okwori,项目名称:iRadiology,代码行数:27,代码来源:change_password_events.php

示例2: Page_BeforeShow

function Page_BeforeShow()
{
    //Page_BeforeShow @1-66DC429C
    //Custom Code @12-2A29BDB7
    global $Tpl;
    global $now;
    global $accounting;
    global $charges;
    global $images;
    global $ttldis;
    global $usertotal;
    global $ttlcal;
    global $item_token;
    $db = new clsDBNetConnect();
    $query = "select tokens from users where user_id=" . CCGetUserID();
    $db->query($query);
    if ($db->next_record()) {
        if ($db->f("tokens") > 0 && !$item_token) {
            $Tpl->SetVar("tokens", "<br><br>You Currently have " . $db->f("tokens") . " 'Free Listing Tokens' in your account.  <br><a href=\"StartListing.php?usetoken=1\">Click Here to use one token and make this listing free!</a>");
        }
    }
    $Tpl->SetVar("ChargeListing", $ttldis);
    $Tpl->SetVar("UserTotal", pricepad($usertotal));
    $finaltotal = $usertotal - $ttlcal;
    $Tpl->SetVar("UserTotalFinal", pricepad($finaltotal));
    //End Custom Code
}
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:27,代码来源:StartListing_events.php

示例3: settings_maintcontent_options_BeforeUpdate

function settings_maintcontent_options_BeforeUpdate(&$sender)
{
    $settings_maintcontent_options_BeforeUpdate = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $settings_maintcontent;
    //Compatibility
    //End settings_maintcontent_options_BeforeUpdate
    //Custom Code @16-2A29BDB7
    // -------------------------
    // Write your own code here.
    $settings_maintcontent->options->modified_iduser->SetValue(CCGetUserID());
    // -------------------------
    //End Custom Code
    //Close settings_maintcontent_options_BeforeUpdate @5-9670AD09
    return $settings_maintcontent_options_BeforeUpdate;
}
开发者ID:wangshipeng,项目名称:license_manager,代码行数:17,代码来源:settings_maintcontent_events.php

示例4: products_suite_maintcontent_alm_product_suites_BeforeUpdate

function products_suite_maintcontent_alm_product_suites_BeforeUpdate(&$sender)
{
    $products_suite_maintcontent_alm_product_suites_BeforeUpdate = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $products_suite_maintcontent;
    //Compatibility
    //End products_suite_maintcontent_alm_product_suites_BeforeUpdate
    //Custom Code @31-2A29BDB7
    // -------------------------
    // Write your own code here.
    $products_suite_maintcontent->alm_product_suites->modified_iduser->SetValue(CCGetUserID());
    // -------------------------
    //End Custom Code
    //Close products_suite_maintcontent_alm_product_suites_BeforeUpdate @2-E62CC3A9
    return $products_suite_maintcontent_alm_product_suites_BeforeUpdate;
}
开发者ID:wangshipeng,项目名称:license_manager,代码行数:17,代码来源:products_suite_maintcontent_events.php

示例5: contacts_subhobbies_maintcontent_alm_customers_contacts_su_BeforeUpdate

function contacts_subhobbies_maintcontent_alm_customers_contacts_su_BeforeUpdate(&$sender)
{
    $contacts_subhobbies_maintcontent_alm_customers_contacts_su_BeforeUpdate = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $contacts_subhobbies_maintcontent;
    //Compatibility
    //End contacts_subhobbies_maintcontent_alm_customers_contacts_su_BeforeUpdate
    //Custom Code @14-2A29BDB7
    // -------------------------
    // Write your own code here.
    $contacts_subhobbies_maintcontent->alm_customers_contacts_su->modified_iduser->SetValue(CCGetUserID());
    // -------------------------
    //End Custom Code
    //Close contacts_subhobbies_maintcontent_alm_customers_contacts_su_BeforeUpdate @2-BEDF7F17
    return $contacts_subhobbies_maintcontent_alm_customers_contacts_su_BeforeUpdate;
}
开发者ID:wangshipeng,项目名称:license_manager,代码行数:17,代码来源:contacts_subhobbies_maintcontent_events.php

示例6: resellers_maintcontent_alm_resellers_BeforeUpdate

function resellers_maintcontent_alm_resellers_BeforeUpdate(&$sender)
{
    $resellers_maintcontent_alm_resellers_BeforeUpdate = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $resellers_maintcontent;
    //Compatibility
    //End resellers_maintcontent_alm_resellers_BeforeUpdate
    //Custom Code @16-2A29BDB7
    // -------------------------
    // Write your own code here.
    $resellers_maintcontent->alm_resellers->modified_iduser->SetValue(CCGetUserID());
    // -------------------------
    //End Custom Code
    //Close resellers_maintcontent_alm_resellers_BeforeUpdate @2-3EF302A3
    return $resellers_maintcontent_alm_resellers_BeforeUpdate;
}
开发者ID:wangshipeng,项目名称:license_manager,代码行数:17,代码来源:resellers_maintcontent_events.php

示例7: charges1_charge_OnValidate

function charges1_charge_OnValidate()
{
    //charges1_charge_OnValidate @10-D55FB1E0
    //Custom Code @22-2A29BDB7
    global $charges1;
    global $accounting;
    global $regcharges;
    global $finalamount;
    $dba = new clsDBNetConnect();
    $dba->connect();
    $dba->query("SELECT * FROM users WHERE user_id='" . CCGetUserID() . "'");
    $dbL = new clsDBNetConnect();
    $dbL->connect();
    while ($dba->next_record()) {
        $clook = $dba->f("country_id");
        $city = $dba->f("city");
        $state = $dba->f("state_id");
        $addr = $dba->f("address1");
        $zip = $dba->f("zip");
        $usid = $dba->f("user_id");
        $email = $dba->f("email");
        $country = CCDLookUp("country_desc", "lookup_countries", "country_id='" . $clook . "'", $dbL);
    }
    $payment_config = array("method" => "cc", "login" => $accounting["authorize"], "tran_key" => $accounting["authorize_tran_key"], "currency_code" => $regcharges["currencycode"]);
    $customer_info = array("first_name" => $charges1->FirstName->GetValue(), "last_name" => $charges1->LastName->GetValue(), "address" => $addr, "city" => $city, "state" => $state, "zip" => $zip, "country" => $country, "cust_id" => $usid, "email" => $email);
    $credit_card_info = array("card_num" => $charges1->CCNumber->GetValue(), "exp_date" => $charges1->ExpDate->GetValue(), "card_code" => $charges1->CardCode->GetValue(), "charge_type" => "AUTH_CAPTURE");
    $payment =& new payment_authorizenet($payment_config);
    $payment->setCustomerIP($_SERVER["REMOTE_ADDR"]);
    $payment->enableCustomerEmails(TRUE);
    $payment->addCustomerInfo($customer_info, "billing");
    $result = $payment->doPayment(rand(), "Classified Ad Listing Fee", $charges1->charge->GetValue(), "no", $credit_card_info);
    if (!$result) {
        $result_code = $payment->response_code;
        // 2 = declined, 3 = error
        if ($result_code == 2) {
            $charges1->charge->Errors->addError("The Card has been declined. Please make sure the Name, CC Number, and Expiration date are correct.");
        }
        if ($result_code == 3) {
            $charges1->charge->Errors->addError("There was an error trying to process your card. Please make sure the Name, CC Number, and Expiration date are correct.");
        }
    }
    $finalamount = $payment->x_amount;
    //End Custom Code
}
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:44,代码来源:MakePayment_events.php

示例8: header_lbusername_BeforeShow

function header_lbusername_BeforeShow(&$sender)
{
    $header_lbusername_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $header;
    //Compatibility
    //End header_lbusername_BeforeShow
    //DLookup @3-A9AF6E5C
    global $DBdbConnection;
    $Page = CCGetParentPage($sender);
    $ccs_result = CCDLookUp("fullname", "alm_users", "id = " . CCGetUserID(), $Page->Connections["dbConnection"]);
    $Component->SetValue($ccs_result);
    //End DLookup
    //Custom Code @4-2A29BDB7
    // -------------------------
    // Write your own code here.
    $sender->SetValue(ucwords($sender->GetValue()));
    // -------------------------
    //End Custom Code
    //Close header_lbusername_BeforeShow @2-B95CD6EB
    return $header_lbusername_BeforeShow;
}
开发者ID:wangshipeng,项目名称:license_manager,代码行数:23,代码来源:header_events.php

示例9: InsertRow

    function InsertRow()
    {
        global $finalamount;
        global $charges;
        global $EP;
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeInsert");
        $this->ds->charge->SetValue($finalamount);
        $this->ds->FirstName->SetValue($this->FirstName->GetValue());
        $this->ds->LastName->SetValue($this->LastName->GetValue());
        $this->ds->CCNumber->SetValue($this->CCNumber->GetValue());
        $this->ds->ExpDate->SetValue($this->ExpDate->GetValue());
        $this->ds->CardCode->SetValue($this->CardCode->GetValue());
        $this->ds->user_id->SetValue(CCGetUserID());
        $this->ds->date->SetValue(time());
        $this->ds->cause->SetValue("Credit Card Payment--Subscription");
        $this->ds->Insert();
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInsert");
        $lookdb = new clsDBNetConnect;
        $lookdb->connect();
        $lookdb->query("SELECT * FROM users WHERE user_login='" . CCGetUserLogin() . "'");
                if($lookdb->next_record()) {
                        $ld = array(
                        "first" => $lookdb->f("first_name"),
                        "ID" => $lookdb->f("user_id"),
                        "last" => $lookdb->f("last_name"),
                        "email" => $lookdb->f("email"),
                        "address" => $lookdb->f("address1"),
                        "address2" => $lookdb->f("address2"),
                        "state" => $lookdb->f("state_id"),
                        "zip" => $lookdb->f("zip"),
                        "city" => $lookdb->f("city"),
                        "phonedy" => $lookdb->f("phone_day"),
                        "phoneevn" => $lookdb->f("phone_evn"),
                        "fax" => $lookdb->f("fax"),
                        "ip" => $lookdb->f("ip_insert"),
                        "date_created" => $lookdb->f("date_created"),
                        );
                }
                $EP["EMAIL:PAYMENT_SUBJECT"] = "Credit Card Deposit";
                $EP["EMAIL:PAYMENT_AMOUNT"] = $charges["currency"] . $finalamount;
                $EP["EMAIL:CURRENT_USERNAME"] = CCGetUserLogin();
                $EP["EMAIL:CURRENT_USERID"] = $ld["ID"];
                $EP["EMAIL:CURRENT_USER_FIRST_NAME"] = $ld["first"];
                $EP["EMAIL:CURRENT_USER_LAST_NAME"] = $ld["last"];
                $EP["EMAIL:CURRENT_USER_EMAIL"] = $ld["email"];
                $EP["EMAIL:CURRENT_USER_ADDRESS"] = $ld["address"];
                $EP["EMAIL:CURRENT_USER_ADDRESS2"] = $ld["address2"];
                $EP["EMAIL:CURRENT_USER_STATE"] = $ld["state"];
                $EP["EMAIL:CURRENT_USER_CITY"] = $ld["city"];
                $EP["EMAIL:CURRENT_USER_ZIP"] = $ld["zip"];
                $EP["EMAIL:CURRENT_USER_DAY_PHONE"] = $ld["phonedy"];
                $EP["EMAIL:CURRENT_USER_EVN_PHONE"] = $ld["phoneevn"];
                $EP["EMAIL:CURRENT_USER_FAX"] = $ld["fax"];
                $EP["EMAIL:CURRENT_USER_IP"] = getenv("REMOTE_ADDR");
                $EP["EMAIL:CURRENT_USER__REGISTERED_IP"] = $ld["ip"];
                $EP["EMAIL:CURRENT_USER_DATE_SIGNEDUP"] = date("F j, Y, g:i a", $ld["date_created"]);

            mailout("NewSubscribe", $now["notifyads"], $payer_id, 1000000000, time(), $EP);

        if($this->ds->Errors->Count() > 0)
        {
            echo "Error in Record " . $this->ComponentName . " / Insert Operation";
            $this->ds->Errors->Clear();
            $this->Errors->AddError("Database command error.");
        }
        return ($this->Errors->Count() == 0);
    }
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:67,代码来源:subscribe.php

示例10: contacts_holidays_maintcontent_alm_contacts_holidays_BeforeUpdate

function contacts_holidays_maintcontent_alm_contacts_holidays_BeforeUpdate(&$sender)
{
    $contacts_holidays_maintcontent_alm_contacts_holidays_BeforeUpdate = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $contacts_holidays_maintcontent;
    //Compatibility
    //End contacts_holidays_maintcontent_alm_contacts_holidays_BeforeUpdate
    //Custom Code @19-2A29BDB7
    // -------------------------
    // Write your own code here.
    $contacts_holidays_maintcontent->alm_contacts_holidays->modified_iduser->SetValue(CCGetUserID());
    //Transforming the way day and month is saved
    $day = $contacts_holidays_maintcontent->alm_contacts_holidays->day_month->GetValue();
    $month = $contacts_holidays_maintcontent->alm_contacts_holidays->day_month1->GetValue();
    $dayMonth = "{$day},{$month}";
    $contacts_holidays_maintcontent->alm_contacts_holidays->hiddaymonth->SetValue($dayMonth);
    // -------------------------
    //End Custom Code
    //Close contacts_holidays_maintcontent_alm_contacts_holidays_BeforeUpdate @3-F481C896
    return $contacts_holidays_maintcontent_alm_contacts_holidays_BeforeUpdate;
}
开发者ID:wangshipeng,项目名称:license_manager,代码行数:22,代码来源:contacts_holidays_maintcontent_events.php

示例11: CCGetUserID

        $query = "select * from used_coupons where user_id = '" . CCGetUserID() . "' and coupon_id = '" . $db->f("id") . "'";
        $db2->query($query);
        if ($db2->next_record()) {
            $error = "You Have Already Used that Coupon";
        }
        $query = "select * from used_coupons where user_id = '" . CCGetUserID() . "' and ItemNum = '" . CCGetSession("RecentItemNum") . "'";
        $db2->query($query);
        if ($db2->next_record()) {
            $error = "You Have Already Used a Coupon on this Listing";
        }
    } else {
        $error = "This Is Not a Valid Coupon";
    }
    if (!$error) {
        $error = "Thank You!  Coupon Code Entered Successfully!  <br><a href=\"StartListing.php\">&lt;&lt;  Return to the \"Start Listing\" page to continue creating your listing!</a>";
        $query = "INSERT INTO used_coupons (`user_id` , `coupon_id` , `date`, `ItemNum`) VALUES ('" . CCGetUserID() . "', '" . $db->f("id") . "' , '" . time() . "', '" . CCGetSession("RecentItemNum") . "')";
        $db->query($query);
    }
    $Tpl->SetVar("error", $error);
} elseif ($_GET["Cancel"]) {
    header("Location: StartListing.php");
    exit;
}
//Show Page @1-8D0414C5
$Header->Show("Header");
$Footer->Show("Footer");
$Tpl->PParse("main", false);
//End Show Page
//Unload Page @1-AB7622EF
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
unset($Tpl);
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:Coupons.php

示例12: licensing_customerscontent_licensing_BeforeUpdate

function licensing_customerscontent_licensing_BeforeUpdate(&$sender)
{
    $licensing_customerscontent_licensing_BeforeUpdate = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $licensing_customerscontent;
    //Compatibility
    //End licensing_customerscontent_licensing_BeforeUpdate
    //Custom Code @190-2A29BDB7
    // -------------------------
    // Write your own code here.
    $licensing_customerscontent->licensing->modified_iduser->SetValue(CCGetUserID());
    //Changing license status to active when inactive and grant,expdate,expirdate are present
    $grantNo = trim($licensing_customerscontent->licensing->grant_number->GetValue());
    $expDate = $licensing_customerscontent->licensing->expedition_date->GetValue();
    $expirDate = $licensing_customerscontent->licensing->expiration_date->GetValue();
    $licenseStatus = (int) $licensing_customerscontent->licensing->hidlicensestatus->GetValue();
    $licenseType = (int) $licensing_customerscontent->licensing->id_license_type->GetValue();
    if ($licenseStatus == 1 && strlen($grantNo) > 0 && count($expDate) > 1 && count($expirDate) > 1) {
        if ($licenseType == 7 || $licenseType == 12) {
            $licensing_customerscontent->licensing->expiration_date->SetValue("");
        }
        $licensing_customerscontent->licensing->hidlicensestatus->SetValue("2");
        //If the renewal was not activated when created, then will use the expired_license_guid to identify
        //a renewal not activeated yet and the expired license was not archived as well.
        $expiredLicenseGuid = trim($licensing_customerscontent->licensing->hidexpired_license_guid->GetValue());
        if (strlen($expiredLicenseGuid) > 0) {
            $params = array();
            $params["guid"] = $expiredLicenseGuid;
            //A renewal not activeated yet and the expired license was not archived as well,
            //sets expired license as archived
            $products = new Alm\Products();
            $products->setLicenseArchivedByGuid($params);
        }
    } else {
        //if ( ($licenseStatus == 1) && (strlen($grantNo) > 0) && (count($expDate) > 1) &&
        if ($licenseStatus == 1 && ($licenseType == 7 || $licenseType == 12)) {
            $licensing_customerscontent->licensing->expiration_date->SetValue("");
            $licensing_customerscontent->licensing->hidlicensestatus->SetValue("2");
        }
    }
    //Setting expired license to archived when archive_only operation takes place
    $o = $licensing_customerscontent->licensing->hido->GetValue();
    if ($licenseStatus == 3 && $o == "archive_only") {
        $params = array();
        $params["guid"] = $licensing_customerscontent->licensing->hidguid->GetValue();
        $products = new Alm\Products();
        $products->setLicenseArchivedByGuid($params);
    }
    // -------------------------
    //End Custom Code
    //Close licensing_customerscontent_licensing_BeforeUpdate @154-43A03213
    return $licensing_customerscontent_licensing_BeforeUpdate;
}
开发者ID:wangshipeng,项目名称:license_manager,代码行数:54,代码来源:licensing_customerscontent_events.php

示例13: count

	'icon_27' : '../images/minus.gif'       // junctioin for last opended node

};

</script>
</head>

<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<div id="links"  style="font-family: Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif;font-size: 12px;>
<form name="menuform" id="menuform">
<?php 
$queryCount = "select count(*) jums " . "from (select a.p_application_id, d.code from p_application d, p_application_role a, p_app_role b, p_app_user_role c " . "where d.p_application_id = a.p_application_id " . "and a.p_app_role_id = b.p_app_role_id and c.p_app_role_id = b.p_app_role_id " . "and c.p_app_user_id = " . CCGetUserID() . " group by a.p_application_id, d.code " . ")";
$dbConn->query($queryCount);
$dbConn->next_record();
$count = $dbConn->f("jums");
$query = "select rownum as idap, p_application_id, code from " . "(select a.p_application_id, d.code from p_application d, p_application_role a, p_app_role b, p_app_user_role c " . "where d.p_application_id = a.p_application_id " . "and a.p_app_role_id = b.p_app_role_id and c.p_app_role_id = b.p_app_role_id " . "and c.p_app_user_id = " . CCGetUserID() . " group by a.p_application_id, d.code " . ")";
$dbConn->query($query);
?>
	<ul>
<?php 
while ($dbConn->next_record()) {
    $idap = $dbConn->f("idap");
    $p_application_id = $dbConn->f("p_application_id");
    ?>
		<li>
			<a href="#" onclick="show('menu_<?php 
    echo $idap;
    ?>
', <?php 
    echo $count;
    ?>
开发者ID:rayminami,项目名称:mpd-online,代码行数:31,代码来源:Copy+of+sikp_menu.php

示例14: CCSecurityAccessCheck

function CCSecurityAccessCheck($GroupsAccess)
{
    $ErrorType = "success";
    if (!strlen(CCGetUserID())) {
        $ErrorType = "notLogged";
    } else {
        $GroupID = CCGetGroupID();
        if (!strlen($GroupID)) {
            $ErrorType = "groupIDNotSet";
        } else {
            if (!CCUserInGroups($GroupID, $GroupsAccess)) {
                $ErrorType = "illegalGroup";
            }
        }
    }
    return $ErrorType;
}
开发者ID:wangshipeng,项目名称:license_manager,代码行数:17,代码来源:Common.php

示例15: clsDBNetConnect

}
if ($_POST["saveAddCats"] && $admingroup && $_POST["addcategory"]) {
    $db = new clsDBNetConnect();
    $newcats = explode(";", $_POST["addcategory"]);
    $i = 0;
    while ($newcats[$i]) {
        $newcats[$i] = trim($newcats[$i]);
        if (strlen($newcats[$i]) > 0) {
            $db->query("insert into `categories` set `name` = '" . mysql_escape_string($newcats[$i]) . "', `sub_cat_id` = '" . $_GET["CatID"] . "'");
        }
        $i++;
    }
    header("Location: ViewCat.php?" . CCGetQueryString("QueryString", array()));
}
$itemcatcounts = get_catcounts($_GET["CatID"]);
if (!CCGetUserID() && $_GET["CatID"]) {
    $db = new CLSDBNetConnect();
    $query = "select * from categories where cat_id=" . $_GET["CatID"];
    $db->query($query);
    if ($db->next_record()) {
        if ($db->f("member") == 1) {
            CCSecurityRedirect("1;2", "login.php", "ViewCat.php", CCGetQueryString("QueryString", ""));
        }
    }
}
//End Include Common Files
$page = "Viewing Listings";
global $REMOTE_ADDR;
global $now;
$ip = $REMOTE_ADDR;
$timeout = $now["timeout"];
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:ViewCat.php


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