<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ` ~~~ <?php // +---------------------------------------------------------------------- // | Created by PHPstorm: JRKAdmin框架 [ JRKAdmin ] // +---------------------------------------------------------------------- // | Copyright (c) 2019~2022 [LuckyHHY] All rights reserved. // +---------------------------------------------------------------------- // | SiteUrl: http://www.luckyhhy.cn // +---------------------------------------------------------------------- // | Author: LuckyHhy <jackhhy520@qq.com> // +---------------------------------------------------------------------- // | Date: 2020/1/3-16:13 // +---------------------------------------------------------------------- // | Description: // +---------------------------------------------------------------------- namespace Jrk; use think\facade\Hook; use think\Loader; class Hooks { /** * @param $tag * @param $params * @param null $extra * @param bool $once * @param null $behavior * @return mixed * @author: hhygyl <hhygyl520@qq.com> * @name: resultListen * @describe:監聽有返回結果的行為 */ public static function resultListen($tag, $params, $extra = null, $once = false,$behavior = null) { self::beforeListen($tag,$params,$extra,false,$behavior); return self::listen($tag,$params,$extra,$once,$behavior); } /** * @param $tag * @param $params * @param null $extra * @param bool $once * @param null $behavior * @return mixed * @author: hhygyl <hhygyl520@qq.com> * @name: afterListen * @describe:監聽后置行為 */ public static function afterListen($tag, $params, $extra = null, $once = false, $behavior = null) { try{ return self::listen($tag.'_after',$params,$extra,$once,$behavior); }catch (\Exception $e){} } /** * @param $tag * @param $params * @param null $extra * @param bool $once * @param null $behavior * @return mixed * @author: hhygyl <hhygyl520@qq.com> * @name: beforeListen * @describe:監聽前置行為 */ public static function beforeListen($tag,$params,$extra = null, $once = false, $behavior = null) { try{ return self::listen($tag.'_before',$params,$extra,$once,$behavior); }catch (\Exception $e){} } /** * @param $tag * @param $params * @param null $extra * @param bool $once * @param null $behavior * @return mixed * @author: hhygyl <hhygyl520@qq.com> * @name: listen * @describe:監聽行為 */ public static function listen($tag, $params, $extra = null, $once = false, $behavior = null) { if($behavior && method_exists($behavior,Loader::parseName($tag,1,false))) self::add($tag,$behavior); return Hook::listen($tag,$params,$extra,$once); } /** * @param $tag * @param $behavior * @param bool $first * @author: hhygyl <hhygyl520@qq.com> * @name: addBefore * @describe:添加前置行為 */ public static function addBefore($tag, $behavior, $first = false) { self::add($tag.'_before',$behavior,$first); } /** * @param $tag * @param $behavior * @param bool $first * @author: hhygyl <hhygyl520@qq.com> * @name: addAfter * @describe:添加后置行為 */ public static function addAfter($tag, $behavior, $first = false) { self::add($tag.'_after',$behavior,$first); } /** * @param $tag * @param $behavior * @param bool $first * @author: hhygyl <hhygyl520@qq.com> * @name: add * @describe:添加行為 */ public static function add($tag, $behavior, $first = false) { Hook::add($tag,$behavior,$first); } } ~~~ `
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看