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


PHP Tools::url方法代码示例

本文整理汇总了PHP中Tools::url方法的典型用法代码示例。如果您正苦于以下问题:PHP Tools::url方法的具体用法?PHP Tools::url怎么用?PHP Tools::url使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tools的用法示例。


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

示例1: _init

 public function _init()
 {
     $this->playerType = array(1 => '用户ID', 2 => '用户账号', 3 => '用户呢称 ');
     $this->_assign['playerType'] = $this->playerType;
     $this->_assign['items'] = $this->partner('Item', 'main', null, 'MasterTools');
     $this->_assign['URL_itemUpdate'] = Tools::url('MasterTools', 'Item', array('timeout' => '1', 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:7,代码来源:SanFen.class.php

示例2: actionIndex

 function actionIndex()
 {
     $this->_modelLostPassword = $this->_getGlobalData('Model_LostPassword', 'object');
     $status = $this->_modelLostPassword->getStatus();
     $this->_view->assign('statusSelect', $status);
     $status[''] = Tools::getLang('ALL', 'Common');
     $gameTypes = $this->_getGlobalData('game_type');
     $gameTypes = Model::getTtwoArrConvertOneArr($gameTypes, 'Id', 'name');
     $serverList = $this->_getGlobalData('gameser_list');
     $serverList = Model::getTtwoArrConvertOneArr($serverList, 'Id', 'server_name');
     $this->_utilMsg->createNavBar();
     $where = array();
     if ($this->_isPost()) {
         $selected['status'] = $_POST['status'];
         if (intval($_POST['status']) > 0) {
             $where['status'] = $_POST['status'];
         }
     }
     $order = 'status asc,Id desc';
     $dataList = $this->_modelLostPassword->getOrder($where, 1, $order);
     $this->_loadCore('Help_Page');
     $currUrl = Tools::url(CONTROL, 'EventList', $selected);
     $helpPage = new Help_Page(array('total' => $this->_modelLostPassword->getCount($where), 'perpage' => PAGE_SIZE, 'url' => $currUrl));
     $this->_view->assign('pageBox', $helpPage->show());
     $this->_view->assign('gameTypes', $gameTypes);
     $this->_view->assign('serverList', $serverList);
     $this->_view->assign('chargeType', $this->_modelLostPassword->getChargeType());
     $this->_view->assign('status', $this->_modelLostPassword->getStatus());
     $this->_view->assign('status', $status);
     $this->_view->assign('dataList', $dataList);
     $this->_view->assign('selected', $selected);
     $this->_view->display();
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:33,代码来源:LostPassword.class.php

示例3: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     if ($_REQUEST["sbm"] == "") {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     if ($_GET["WorldID"] != "") {
         $WorldID = $_GET["WorldID"];
     }
     $postData = array('PlayerID' => trim($_GET['PlayerID']), 'AccountName' => trim($_GET['AccountName']), 'AccountID' => trim($_GET['AccountID']), 'WorldID' => trim($WorldID), 'PlayerName' => urlencode(trim($_GET['PlayerName'])), 'Page' => max(0, intval($_GET['page'] - 1)));
     $getData = array_merge($getData, $postData);
     $account = $this->getResult($UrlAppend, $getData);
     if ($account['Result'] === 0) {
         $status = 1;
         if ($account['PlayerList']) {
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $account['Count'], 'perpage' => PAGE_SIZE));
             $this->_assign['data'] = $account;
             $this->_assign['dataList'] = $account['PlayerList'];
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
         $info = $data['info'];
     }
     $this->_assign['ajax'] = Tools::url(CONTROL, 'PlayerRoleList', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:32,代码来源:zhanlong.class.php

示例4: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if ($this->_isPost()) {
         $cause .= "全服发送邮件<br>";
         $getData = $this->_gameObject->getGetData($get);
         $r = "";
         $cause .= "内容:" . trim($_POST['content']) . "<br>";
         $cause .= "标题:" . trim($_POST['title']) . "<br>";
         foreach ($_POST["server_ids"] as $v) {
             $postData = array('WorldID' => intval($this->_serverList[$v]["ordinal"]), 'IsAllPlayer' => intval(1), 'Title' => trim($_POST['title']), 'Content' => trim($_POST['content']));
             $SendData["data"] = json_encode($postData);
             $applyData = array('type' => 51, 'server_id' => $v, 'operator_id' => $this->_serverList[$v]['operator_id'], 'game_type' => $this->_serverList[$v]['game_type_id'], 'list_type' => 1, 'apply_info' => str_replace(array("\r\n", "\n"), '', $cause), 'send_type' => 1, 'send_data' => array('url_append' => $UrlAppend, 'post_data' => $SendData, 'get_data' => $getData, 'call' => array('cal_local_object' => 'Game_' . $this->_gameObject->_gameId, 'cal_local_method' => 'ApplySend', 'params' => array('data' => $SendData, "server_id" => $v, "UrlAppend" => $UrlAppend))), 'receiver_object' => array($serverId => ''), 'player_type' => 0, 'player_info' => 0);
             $modelApply = $this->_getGlobalData('Model_Apply', 'object');
             if ($modelApply->AddApply($applyData)) {
                 $r .= "[" . $this->_serverList[$v]["server_name"] . "]提交成功<br>";
             } else {
                 $r .= "[" . $this->_serverList[$v]["server_name"] . "]提交失败<br>";
             }
         }
         $URL_CsIndex = Tools::url('Apply', 'CsIndex');
         $URL_CsAll = Tools::url('Apply', 'CsAll');
         $showMsg = '申请成功,等待审核...<br>';
         $showMsg .= "<a href='{$URL_CsIndex}'>客服审核列表</a><br>";
         $showMsg .= "<a href='{$URL_CsAll}'>客服审核列表(全部)</a>";
         $this->jump($r . $showMsg, 1, 1, false);
     }
     $this->_assign['tplServerSelect'] = 'BaseZp/MultiServerSelect.html';
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:29,代码来源:zhanlong.class.php

示例5: actionSetup

 /**
  * 职位设置
  */
 public function actionSetup()
 {
     $this->_modelUser = $this->_getGlobalData('Model_User', 'object');
     $this->_setupFilePath = CACHE_DIR . '/program/position.cache.php';
     if (file_exists($this->_setupFilePath)) {
         $dataList = $this->_getGlobalData('program/position');
         foreach ($dataList as $key => &$list) {
             $list['url_del'] = Tools::url(CONTROL, 'SetupDel', array('zp' => 'Program', 'Id' => $key));
         }
     } else {
         $dataList = null;
     }
     if ($dataList !== null) {
         $users = $this->_modelUser->findByDepartment(self::DEPARTMENT_IT);
         foreach ($users as $user) {
             if (!$user['position_id']) {
                 continue;
             }
             if (array_key_exists($user['position_id'], $dataList)) {
                 if (!is_array($dataList[$user['position_id']]['users'])) {
                     $dataList[$user['position_id']]['users'] = array();
                 }
                 array_push($dataList[$user['position_id']]['users'], $user);
             }
         }
     }
     $this->_view->assign('dataList', $dataList);
     $this->_utilMsg->createPackageNavBar();
     $this->_view->display();
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:33,代码来源:ProgramUser.class.php

示例6: _getCardlist

 private function _getCardlist($UrlAppend = null, $get = null, $post = null)
 {
     $postData = $this->getPostData($post);
     $get = $this->_gameObject->getGetData($get);
     $data = $this->getResult($UrlAppend, $get, $postData);
     if ($data['status'] == 1) {
         $list = $data['data']['list'];
         if (is_array($list)) {
             foreach ($list as &$sub) {
                 $sub['URL_itemCardFailure'] = Tools::url(CONTROL, ACTION, array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id'], 'cardId' => $sub['cardId'], 'do' => 'failure'));
                 $sub['goods'] = $this->_getGoodsInfo($sub['goods']);
                 $sub['type'] = $this->cardType[$sub['type']];
             }
             $this->_assign['dataList'] = $list;
             $total = intval($data['data']['total']);
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $total, 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Info:' . $data['info'];
         return $this->_assign;
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:26,代码来源:Default_1_1.class.php

示例7: _add

 private function _add()
 {
     $typeArr = $this->_f("logType_" . $this->_gameObject->_gameId);
     $typeArr[$_POST["type_id"]] = array("cn" => $_POST["chinese"], "en" => $_POST["english"]);
     $this->_f("logType_" . $this->_gameObject->_gameId, $typeArr);
     $this->jump('操作成功', 1, Tools::url(CONTROL, 'LogType', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId)));
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:7,代码来源:zhanlong.class.php

示例8: _allnoticeIndex

 public function _allnoticeIndex()
 {
     $this->_assign['ajax'] = Tools::url(CONTROL, ACTION, array('zp' => PACKAGE, 'doaction' => 'ajax', '__game_id' => $this->_gameObject->_gameId));
     //		$this->_assign['del']				=	Tools::url(CONTROL,ACTION,array('zp'=>PACKAGE,'doaction'=>'del','__game_id'=>$this->_gameObject->_gameId));
     $this->_assign['tplServerSelect'] = "ActionGame_OperatorTools/AllNotice/ServerSelect.html";
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:7,代码来源:StarDream.class.php

示例9: main

 public function main($UrlAppend = null, $get = null, $post = null)
 {
     $serverId = $_REQUEST['server_id'];
     if (!$serverId) {
         return $this->_assign;
     }
     if ($this->_isPost()) {
         $postData = $this->getPostData($post);
         $getData = $this->_gameObject->getGetData($get);
         $apply_info = "申请原因:<br>{$_POST['cause']}<p>";
         //1的类型是奖励发送
         $apply_info .= '<div style="padding:3px; margin:3px; border:1px dashed #000">';
         $apply_info .= $this->goodsDis;
         $apply_info .= '<br>用户类型:' . $this->playerType[$_POST['playerType']];
         $apply_info .= '<br>用户:' . $_POST['player'];
         $apply_info .= '</div>';
         $gameser_list = $this->_getGlobalData('server/server_list_' . $_REQUEST['__game_id']);
         $applyData = array('type' => 50, 'server_id' => $_REQUEST['server_id'], 'operator_id' => $gameser_list[$_REQUEST['server_id']]['operator_id'], 'game_type' => $gameser_list[$_REQUEST['server_id']]['game_type_id'], 'list_type' => 1, 'apply_info' => $apply_info, 'send_type' => 2, 'send_data' => array('url_append' => $UrlAppend, 'post_data' => $postData, 'get_data' => $getData), 'receiver_object' => array($serverId => ''), 'player_type' => $_POST['playerType'], 'player_info' => $_POST['player']);
         $_modelApply = $this->_getGlobalData('Model_Apply', 'object');
         $applyInfo = $_modelApply->AddApply($applyData);
         // 				print_r($applyData);exit;
         // 				var_dump($applyInfo);exit;
         if (true === $applyInfo) {
             $URL_CsIndex = Tools::url('Apply', 'CsIndex');
             $URL_CsAll = Tools::url('Apply', 'CsAll');
             $showMsg = '申请成功,等待审核...<br>';
             $showMsg .= "<a href='{$URL_CsIndex}'>客服审核列表</a><br>";
             $showMsg .= "<a href='{$URL_CsAll}'>客服审核列表(全部)</a>";
             $this->jump($showMsg, 1, 1, false);
         } else {
             $this->jump($applyInfo['info'], -1);
         }
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:35,代码来源:SanFen.class.php

示例10: add

 public function add($postArr)
 {
     if (empty($postArr['title'])) {
         return array('status' => -1, 'msg' => '请填写标题', 'href' => 1);
     }
     if (empty($postArr['description'])) {
         return array('status' => -1, 'msg' => '请填写描述', 'href' => 1);
     }
     if (empty($postArr['start_time'])) {
         return array('status' => -1, 'msg' => '请选择开始时间', 'href' => 1);
     }
     if (empty($postArr['end_time'])) {
         return array('status' => -1, 'msg' => '请选择结束时间', 'href' => 1);
     }
     $this->_utilRbac = $this->_getGlobalData('Util_Rbac', 'object');
     $userClass = $this->_utilRbac->getUserClass();
     $addArr = array();
     $addArr['title'] = $postArr['title'];
     $addArr['description'] = $postArr['description'];
     $addArr['start_time'] = strtotime($postArr['start_time']);
     $addArr['end_time'] = strtotime($postArr['end_time']);
     $addArr['create_time'] = CURRENT_TIME;
     $addArr['status'] = $postArr['status'];
     $addArr['user_id'] = $userClass['_id'];
     if (parent::add($addArr)) {
         return array('status' => 1, 'msg' => false, 'href' => Tools::url('Askform', 'Askform'));
     } else {
         return array('status' => -2, 'msg' => '添加问卷失败', 'href' => 1);
     }
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:30,代码来源:Askform.class.php

示例11: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     $this->_assign['server_id'] = $_REQUEST['server_id'];
     $postData = $this->getPostData($post);
     // 			print_r($postData);
     $getData = $this->_gameObject->getGetData($get);
     $data = $this->getResult($UrlAppend, $getData, $postData);
     // 			print_r($data);
     // 			exit;
     if ($data['status'] == 1 && is_array($data['data']['list'])) {
         $list = $data['data']['list'];
         //  				print_r($list);exit;
         foreach ($list as &$sub) {
             $sub['del_url'] = Tools::url(CONTROL, 'RewardTriggerDel', array('id' => $sub['id'], 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id'], 'doaction' => 'delById'));
             $sub['del_urlByTitle'] = Tools::url(CONTROL, 'RewardTriggerDel', array('title' => $sub['title'], 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id'], 'doaction' => 'delByTitle'));
             foreach ($sub['award'] as $k => $v) {
                 $award .= $v['cname'] . '(' . $v['num'] . ') ';
             }
             $sub['award'] = $award;
             $award = '';
         }
         $this->_assign['dataList'] = $list;
         // 				$this->_loadCore('Help_Page');//载入分页工具
         // 				$helpPage=new Help_Page(array('total'=>intval($data['data']['total']),'perpage'=>PAGE_SIZE));
         // 				$this->_assign['pageBox'] = $helpPage->show();
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:31,代码来源:LuanShi.class.php

示例12: createNavBar

 /**
  * 生成导航条
  * @param string $control 控制器
  * @param string $action 动作
  */
 public function createNavBar($control = CONTROL, $action = ACTION)
 {
     $this->_createView();
     $menuIndex = $this->_getGlobalData('menuIndex');
     $curValue = "{$control}_{$action}";
     #------生成2,3级导航条------#
     $curAction = $menuIndex[$curValue];
     if ($curAction['super_action']) {
         $lv3 = "<a href='javascript:void(0)'>{$curAction['name']}</a>";
         $superName = $menuIndex[$curAction['super_action']]['name'];
         $superValue = $menuIndex[$curAction['super_action']]['value'];
         $superAction = explode('_', $superValue);
         $superUrl = Tools::url($superAction[0], $superAction[1]);
         $lv2 = "<a href='{$superUrl}'>{$superName}</a>";
         $mainId = $menuIndex[$superValue]['parent_id'];
         foreach ($menuIndex as $value) {
             if ($value['Id'] == $mainId) {
                 $lv1 = $value['name'];
             }
         }
     } else {
         $lv2 = "<a href='" . Tools::url($control, $action) . "'>{$curAction['name']}</a>";
         $mainId = $menuIndex[$curValue]['parent_id'];
         foreach ($menuIndex as $value) {
             if ($value['Id'] == $mainId) {
                 $lv1 = $value['name'];
             }
         }
     }
     #------生成2,3级导航条------#
     $this->_view->set_tpl(array('navBar' => 'Default/NavigationBar.html'));
     $navBar = array('lv1' => $lv1, 'lv2' => $lv2, 'lv3' => $lv3);
     $this->_view->assign('nav', $navBar);
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:39,代码来源:Msg.class.php

示例13: _init

 public function _init()
 {
     $this->_assign[self::ITEM_TYPE] = Tools::gameConfig(self::ITEM_TYPE, $this->_gameObject->_gameId);
     //itemTypes
     $this->_assign[self::BIND_TYPE] = Tools::gameConfig(self::BIND_TYPE, $this->_gameObject->_gameId);
     //bindType
     $this->_assign[self::GOLD_TYPE] = Tools::gameConfig(self::GOLD_TYPE, $this->_gameObject->_gameId);
     //goldType
     $this->_assign[self::KEY_TYPE] = Tools::gameConfig(self::KEY_TYPE, $this->_gameObject->_gameId);
     //keyType
     $this->_assign[self::ITEM_PACKAGE_TYPE] = Tools::gameConfig(self::ITEM_PACKAGE_TYPE, $this->_gameObject->_gameId);
     //keyType
     $this->_assign[self::EXCHANGE_TYPE] = Tools::gameConfig(self::EXCHANGE_TYPE, $this->_gameObject->_gameId);
     //keyType
     $this->_assign['itemReceiveConditions'] = $this->partner('ItemReceiveCondition');
     //礼包领取的条件
     $this->_assign['items'] = $this->partner('Item');
     $this->_assign['selected'][self::BIND_TYPE] = 2;
     //0:不绑定,1:绑定服,2:绑定玩家
     $this->_assign['selected'][self::GOLD_TYPE] = 2;
     //1:系统元宝,2:GM元宝
     $this->_assign['selected'][self::KEY_TYPE] = 1;
     //1:36位,2 10位
     $this->_assign['selected'][self::ITEM_PACKAGE_TYPE] = 100;
     //100:标准礼包,200: 共享礼包
     $this->_assign['selected'][self::EXCHANGE_TYPE] = 2;
     //1:补偿金币卡,2: 智能金币卡
     $this->_assign['URL_itemReceiveConditions'] = Tools::url(CONTROL, 'ItemReceiveCondition', array('timeout' => '1', 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_itemUpdate'] = Tools::url(CONTROL, 'Item', array('timeout' => '1', 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_itemCard'] = Tools::url(CONTROL, 'ItemCard', array('submit' => 1, 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_playerLookup'] = Tools::url(CONTROL, 'PlayerLookup', array('sbm' => 1, 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:32,代码来源:GongFu.class.php

示例14: edit

 public function edit($postArr)
 {
     if (empty($postArr['Id'])) {
         return array('msg' => '参数错误', 'status' => -1, 'href' => 2);
     }
     if (empty($postArr['name'])) {
         return array('msg' => '项目名称不能为空', 'status' => -1, 'href' => 2);
     }
     if (empty($postArr['principal_user_id'])) {
         return array('msg' => '请选择项目负责人', 'status' => -1, 'href' => 2);
     }
     if (empty($postArr['detail'])) {
         $postArr['detail'] = '暂无内容';
     }
     $updateArr = array('name' => $postArr['name'], 'principal_user_id' => $postArr['principal_user_id'], 'detail' => $postArr['detail']);
     $this->update($updateArr, "Id={$postArr['Id']}");
     $this->_modelUser = $this->_getGlobalData('Model_User', 'object');
     $this->_modelUser->execute("update {$this->_modelUser->tName()} set project_id=0 where project_id = {$postArr['Id']}");
     if (count($postArr['user_id'])) {
         $this->_modelUser->execute("update {$this->_modelUser->tName()} set project_id={$postArr['Id']} where Id in (" . implode(',', $postArr['user_id']) . ")");
     }
     $this->_modelUser->createCache();
     $this->createCache();
     return array('msg' => '项目修改成功', 'status' => 1, 'href' => Tools::url('ProgramProject', 'Index', array('zp' => 'Program')));
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:25,代码来源:ProgramProject.class.php

示例15: edit

 public function edit($postArr)
 {
     $postArr['Id'] = intval($postArr['Id']);
     if (!$postArr['Id']) {
         return array('msg' => '参数错误', 'status' => '-1', 'href' => 2);
     }
     if (!$postArr['game_type_id']) {
         return array('msg' => '请选择游戏', 'status' => '-1', 'href' => 2);
     }
     if (!$postArr['type']) {
         return array('msg' => '请选类型', 'status' => '-1', 'href' => 2);
     }
     if (!$postArr['progress']) {
         return array('msg' => '请选择进展', 'status' => '-1', 'href' => 2);
     }
     if (!$postArr['title']) {
         return array('msg' => '请输入标题', 'status' => '-1', 'href' => 2);
     }
     if (!$postArr['content']) {
         return array('msg' => '请输入内容', 'status' => '-1', 'href' => 2);
     }
     $this->_utilRbac = $this->_getGlobalData('Util_Rbac', 'object');
     $userClass = $this->_utilRbac->getUserClass();
     $updateArr = array('game_type_id' => intval($postArr['game_type_id']), 'type' => intval($postArr['type']), 'progress' => intval($postArr['progress']), 'title' => $postArr['title'], 'content' => $postArr['content'], 'edit_time' => CURRENT_TIME, 'user_id' => $userClass['_id']);
     $this->update($updateArr, "Id={$postArr['Id']}");
     return array('msg' => '编辑成功', 'status' => '1', 'href' => Tools::url('Worker', 'Index', array('zp' => 'LianYun')));
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:27,代码来源:LyWorker.class.php


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