橙味菌 · 2020年01月08日

重构——抽取方法

到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!

何为抽取方法

将重复的代码或语义独立的代码抽取成一个方法

看好了:

Tom抓Jerry(又臭又长版)

class Tom {
    
    /**
    * Tom当前的位置
    **/
    private int curPos;
    
    public void catchJerry() {
        
        //只要没抓到Jerry就一直抓
        while(true) {
            //找Jerry
            //左看看
            int posOfJerry = lookLeft();
            //右看看
            if(posOfJerry == -1)
                posOfJerry = lookRight();
            //上看看,下看看
            //.....省略

            //前往Jerry的位置
            while(curPos <= posOfJerry) {
                //迈前腿
                curPos++;
                //迈后腿 保持平衡
                //....
            }
            
            //抬起爪子
            upHands();
            //挥爪
            Object objInHand = waveHands();
            //Jerry是否在手中
            if(Jerry.equals(objInHand))
                break;
        }
        
    }
}
又臭又长,两个While的嵌套循环,让人不明所以,连走路迈腿都写在一块,如果没有注释的话,绝对让人无法理解

接下来见证重构的奇迹

  1. 简化逻辑:抓Jerry = 抓不到Jerry就一直抓

    public void catchJerry() {
        //只要没抓到Jerry就一直抓
        while(!tryCatchJerry());
    }
    catchJerry()只有一行了,此处应有掌声

    但是我们又创建了又臭又长的方法——试图抓住Jerry

    private boolean tryCatchJerry() {
        //找Jerry
            //左看看
            int posOfJerry = lookLeft();
            //右看看
            if(posOfJerry == -1)
                posOfJerry = lookRight();
            //上看看,下看看
            //.....省略
    
            //前往Jerry的位置
            while(curPos <= posOfJerry) {
                //迈前腿
                curPos++;
                //迈后腿 保持平衡
                //....
            }
    
            //抬起爪子
            upHands();
            //挥爪
            Object objInHand = waveHands();
            //Jerry是否在手中
            return Jerry.equals(objInHand));
    }
  2. 分而治之:试图抓住Jerry = 找Jerry + 前往Jerry位置 + 挥爪抓住Jerry

    private boolean tryCatchJerry() {
        //找Jerry并前往Jerry的位置
        go(findPosOfJerry());
        
        //挥爪抓Jerry
        return waveHandsCatchSomething(Jerry);
    }
    好的,tryCatchJerry简单又清晰了

    我对剩下的方法进行了微调,让它们更有逻辑感

    private int findPosOfJerry() {
        //左看看
        int posOfJerry = lookLeft();
        if(posOfJerry != -1)
            return posOfJerry;
        
        //右看看
        posOfJerry = lookRight();
        if(posOfJerry != -1)
            return posOfJerry;
        //上看看,下看看
        //.....省略
    }
    
    private void go(int pos) {
        while(curPos <= pos) {
            //迈前腿
            curPos++;
            //迈后腿 保持平衡
            //....
        }
    }
    
    private boolean waveHandsCatchSomething(Object something) {
            //抬起爪子
            upHands();
            //挥抓,然后看看指定东西是否在手中
            return something.equals(waveHands());
    }

新版Tom抓Jerry

铛铛!掌声在哪里?
class Tom {

    /**
    * Tom当前的位置
    **/
    private int curPos;

    public void catchJerry() {
        //只要没抓到Jerry就一直抓
        while(!tryCatchJerry());
    }
    
    private boolean tryCatchJerry() {
        //找Jerry并前往Jerry的位置
        go(findPosOfJerry());

        //挥爪抓Jerry
        return waveHandsCatchSomething(Jerry);
    }
    
    private int findPosOfJerry() {
        //左看看
        int posOfJerry = lookLeft();
        if(posOfJerry != -1)
            return posOfJerry;

        //右看看
        posOfJerry = lookRight();
        if(posOfJerry != -1)
            return posOfJerry;
        //上看看,下看看
        //.....省略
    }

    private void go(int pos) {
        while(curPos <= pos) {
            //迈前腿
            curPos++;
            //迈后腿 保持平衡
            //....
        }
    }

    private boolean waveHandsCatchSomething(Object something) {
        //抬起爪子
        upHands();
        //挥抓,然后看看指定东西是否在手中
        return something.equals(waveHands());
    }
}

何时应该抽取方法

有重复代码

方法体又臭又长看不懂

怎么抽取方法

IDEA提供了重构的快捷方式和快捷键,使用IDEA进行重构,方便又快捷
  1. 选中要抽取的代码

  2. 进行方法抽取 右键->选择重构->抽取->方法 (或者直接使用快捷键Ctrl + Alt + m)

    自动检测出个别重复代码的细微差别,有些代码可能只改动一两个变量,IDEA会自动检测出来,并在抽取方法时提醒我们,选择左侧Accept Signature Change(接受签名变动)可以使抽取的方法自动替换更多的重复点

    可以选择替换掉所有的重复代码(竟然有18处)

  3. 重构——更改方法签名

    如果你对抽取出的方法的名字、参数、返回值或是修饰符不满意,不要使用Ctrl + R 修改,IDEA提供了重构方法——更改签名(快捷键Ctrl + F6)

    注意:方法的名字指的是方法做了什么,而非怎么去做,最好是 动词+名词 格式

    比如:Tom.扫地() √

    ​ Tom.扫地With扫把() ×

    ​ Tom.用扫把扫地() ×

更多重构手段

等我把这些文章全写完发了,再给你们提供链接
  • 抽取方法

    到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!

  • 使用对象封装参数集

    答应我,别再给方法弄一长溜的参数了,好吗?

  • 使用查询方法取代临时变量

    你这方法里怎么这么多临时变量?我完全记不住每个变量是用来干什么的!

  • 使用多态取代switch分支

    “来看看外包老哥写的超长switch语句”这种文章又登上首页了

  • 及时打断if条件分支

    外包老哥总是被黑的幕后黑手找到了!

  • 转移成员变量和函数

    道理我都懂,可是你一直在用的成员变量为什么要让我负责管理?

  • 抽取类

    总觉得,是时候new一个替身出来帮我干活了

  • 将数据的处理函数转移给持有数据的类

    或许,这个锅应该由你来背

  • 向父类转移成员变量和函数

    所有子类都需要做的事,为什么不让父类直接做了?

  • 注意集合型成员变量的get/set方法!

    有人动了我的集合对象,可是我却不知道!

技术不分领域,思想一脉相承,欢迎访问橙味菌的博客
推荐阅读
关注数
0
文章数
6

( ! ) Fatal error: Uncaught TypeError: Argument 1 passed to HyperDown\Parser::initText() must be of the type string, null given, called in /Data/webapps/aijishu/lib/HyperDown/Parser.php on line 159 and defined in /Data/webapps/aijishu/lib/HyperDown/Parser.php on line 211
( ! ) TypeError: Argument 1 passed to HyperDown\Parser::initText() must be of the type string, null given, called in /Data/webapps/aijishu/lib/HyperDown/Parser.php on line 159 in /Data/webapps/aijishu/lib/HyperDown/Parser.php on line 211
Call Stack
#TimeMemoryFunctionLocation
10.0000352224{main}( ).../index.php:0
20.0000352560require( '/Data/webapps/aijishu/config/loader.php ).../index.php:3
30.0001397488L8\App::run( $routes = ['@' => 'Page#notFound', '/status.html' => 'null:Page#status', '/robots.txt' => 'null:Page#robots', '/api' => ['post:/article/add' => 'init+login:Api\\Article#add', 'post:/article/edit' => 'init+login:Api\\Article#edit', 'post:/question/add' => 'init+login:Api\\Question#add', 'post:/question/edit' => 'init+login:Api\\Question#edit', 'get:/channel/newest' => 'Api\\Feed?tab=newest#contents', 'get:/channel/hottest' => 'Api\\Feed?tab=hottest#contents', 'get:/channel/recommend' => 'Api\\Feed?tab=recommend#contents', 'get:/channel/subscribed' => 'init+login:Api\\Feed?tab=subscribed#contents', 'get:/channel/[id]/tag/[tagId]' => 'Api\\Feed?tab=newest#contents', 'get:/channel/[id]' => 'Api\\Feed?tab=newest#contents', 'get:/article/newest' => 'Api\\Article?tab=newest#articles', 'get:/article/hottest' => 'Api\\Article?tab=hottest#articles', 'get:/article/recommend' => 'Api\\Article?tab=recommend#articles', 'get:/article/subscribed' => 'Api\\Article?tab=subscribed#articles', 'get:/article/channel/[id]/tag/[tagId]' => 'Api\\Article?tab=channel#articles', 'get:/article/channel/[id]' => 'Api\\Article?tab=channel#articles', 'post:/article/[id]/blog/delete' => 'init+login:Api\\Article#deleteBlog', 'post:/article/[id]/delete' => 'init+login:Api\\Article#delete', 'post:/article/[id]/bookmark' => 'init+login:Api\\Article#bookmark', 'post:/article/[id]/bookmark/cancel' => 'init+login:Api\\Article#cancelBookmark', 'post:/article/[id]/vote/up' => 'init+login:Api\\Article#voteUp', 'post:/article/[id]/vote/up/cancel' => 'init+login:Api\\Article#voteUpCancel', 'post:/article/[id]/recommend' => 'init+login:Api\\Article#recommend', 'post:/article/[id]/recommend/cancel' => 'init+login:Api\\Article#recommendCancel', 'post:/article/[id]/stick' => 'init+login:Api\\Article#stick', 'post:/article/[id]/stick/cancel' => 'init+login:Api\\Article#stickCancel', 'post:/article/[id]/hide' => 'init+login:Api\\Article#hide', 'post:/article/[id]/hide/cancel' => 'init+login:Api\\Article#hideCancel', 'post:/article/[id]/report' => 'init+login:Api\\Article#report', 'post:/article/file' => 'Api\\Storage?type=file#uploadLargeFile', 'get:/question/newest' => 'Api\\Question?tab=newest#questions', 'get:/question/hottest' => 'Api\\Question?tab=hottest#questions', 'get:/question/unanswered' => 'Api\\Question?tab=unanswered#questions', 'get:/question/channel/[id]' => 'Api\\Question?tab=channel#questions', 'post:/question/[id]/delete' => 'init+login:Api\\Question#delete', 'post:/question/[id]/bookmark' => 'init+login:Api\\Question#bookmark', 'post:/question/[id]/bookmark/cancel' => 'init+login:Api\\Question#cancelBookmark', 'post:/question/[id]/vote/up' => 'init+login:Api\\Question#voteUp', 'post:/question/[id]/vote/up/cancel' => 'init+login:Api\\Question#voteUpCancel', 'post:/question/[id]/vote/down' => 'init+login:Api\\Question#voteDown', 'post:/question/[id]/vote/down/cancel' => 'init+login:Api\\Question#voteDownCancel', 'post:/question/[id]/follow' => 'init+login:Api\\Question#follow', 'post:/question/[id]/follow/cancel' => 'init+login:Api\\Question#cancelFollow', 'post:/question/[id]/report' => 'init+login:Api\\Question#report', 'post:/question/[id]/invite' => 'init+login:Api\\Question#invite', 'post:/question/[id]/invite/cancel' => 'init+login:Api\\Question#cancelInvite', 'post:/answer/add' => 'init+login:Api\\Answer#add', 'post:/answer/edit' => 'init+login:Api\\Answer#edit', 'post:/answer/[id]/delete' => 'init+login:Api\\Answer#delete', 'post:/answer/[id]/accept' => 'init+login:Api\\Answer#accept', 'post:/answer/[id]/accept/cancel' => 'init+login:Api\\Answer#acceptCancel', 'post:/answer/[id]/vote/up' => 'init+login:Api\\Answer#voteUp', 'post:/answer/[id]/vote/up/cancel' => 'init+login:Api\\Answer#voteUpCancel', 'post:/answer/[id]/vote/down' => 'init+login:Api\\Answer#voteDown', 'post:/answer/[id]/vote/down/cancel' => 'init+login:Api\\Answer#voteDownCancel', 'post:/answer/[id]/report' => 'init+login:Api\\Answer#report', 'get:/user/[id]/timeline' => 'Api\\User#timeline', 'post:/user/avatar' => 'init+login:Api\\Storage?type=avatar#upload+userAvatar', 'post:/user/register/send' => 'Api\\Account#sendCode', 'post:/user/register' => 'Api\\Account#register', 'post:/user/login' => 'Api\\Account#login', 'post:/user/[id]/follow' => 'init+login:Api\\User#follow', 'post:/user/[id]/follow/cancel' => 'init+login:Api\\User#cancelFollow', 'get:/user/search' => 'init+login:Api\\User#search', 'get:/user/events' => 'init+login:Api\\User#events', 'post:/user/events/viewedAll' => 'init+login:Api\\User#eventsViewedAll', 'post:/user/events/[id]/view' => 'init+login:Api\\User#eventsViewed', 'post:/user/privacy/allowed' => 'init+login:Api\\User#allowedPrivacy', 'post:/user/setting/info' => 'init+login:Api\\Account#infoSetting', 'post:/user/setting/notification' => 'init+login:Api\\Account#notificationSetting', 'post:/user/setting/privacy' => 'init+login:Api\\Account#privacySetting', 'post:/user/setting/mail' => 'init+login:Api\\Account#setMail', 'post:/user/setting/mail/confirm' => 'init+login:Api\\Account#setMailConfirm', 'post:/user/setting/phone' => 'init+login:Api\\Account#setPhone', 'post:/user/setting/phone/confirm' => 'init+login:Api\\Account#setPhoneConfirm', 'post:/user/setting/password' => 'init+login:Api\\Account#setPassword', 'post:/user/password/reset' => 'Api\\Account#resetPassword', 'post:/user/password/reset/proceed' => 'Api\\Account#resetPasswordProceed', 'post:/user/password/reset/confirm' => 'Api\\Account#resetPasswordConfirm', 'post:/user/[id]/report' => 'init+login:Api\\Comment#report', 'get:/blog/[id]/articles' => 'Api\\Article?tab=blog#articles', 'get:/blog/[id]/contents' => 'Api\\Blog#blog+contents', 'post:/blog/[id]/avatar' => 'init+login:Api\\Storage?type=avatar#upload+blogAvatar', 'post:/blog/add' => 'init+login:Api\\Blog#add', 'post:/blog/[id]/edit' => 'init+login:Api\\Blog#edit', 'post:/blog/[id]/follow' => 'init+login:Api\\Blog#follow', 'post:/blog/[id]/follow/cancel' => 'init+login:Api\\Blog#cancelFollow', 'post:/blog/[id]/author/invite' => 'init+login:Api\\BlogAuthor#invite', 'post:/blog/[id]/author/confirm' => 'init+login:Api\\BlogAuthor#confirm', 'post:/blog/[id]/author/refuse' => 'init+login:Api\\BlogAuthor#refuse', 'post:/blog/[id]/author/delete' => 'init+login:Api\\BlogAuthor#delete', 'post:/blog/[id]/author/change' => 'init+login:Api\\BlogAuthor#change', 'get:/comment/list/[id]' => 'Api\\Comment#comments', 'post:/comment/add' => 'init+login:Api\\Comment#add', 'post:/comment/edit' => 'init+login:Api\\Comment#edit', 'post:/comment/[id]/delete' => 'init+login:Api\\Comment#delete', 'post:/comment/[id]/vote/up' => 'init+login:Api\\Comment#voteUp', 'post:/comment/[id]/vote/up/cancel' => 'init+login:Api\\Comment#voteUpCancel', 'post:/comment/[id]/report' => 'init+login:Api\\Comment#report', 'post:/tag/add' => 'init+login:Api\\Tag#add', 'post:/tag/edit' => 'init+login:Api\\Tag#edit', 'get:/tag/default' => 'Api\\Tag#defaultTags', 'post:/tag/[id]/follow' => 'init+login:Api\\Tag#follow', 'post:/tag/[id]/follow/cancel' => 'init+login:Api\\Tag#cancelFollow', 'get:/reason/[model]/[method]' => 'init+login:Api\\Reason#getReasons', 'post:/storage/image' => 'init+login:Api\\Storage?type=image#upload+image', 'get:/storage/signature/upyun' => 'init+login:Api\\Storage?type=file#getUpyunSignature', 'get:/storage/signature' => 'init+login:Api\\Storage?type=file#getAliyunSignature', 'post:/storage/signature/qiniu' => 'init+login:Api\\Storage?type=file#getQiniuSignature', 'get:/wechat/events' => 'Api\\Wechat#events', 'post:/wechat/events' => 'Api\\Wechat#events', 'get:/wechat/menu' => 'Api\\Wechat#menu', 'get:/wechat/qrcode' => 'Api\\Wechat#qrcode', 'get:/wechat/checkLogin' => 'Api\\Wechat#checkLogin', 'post:/l/add' => 'init+login:Api\\Live#add', 'post:/l/[id]/edit' => 'init+login:Api\\Live#edit', 'post:/l/[id]/delete' => 'init+login:Api\\Live#delete', 'post:/l/[id]/finish' => 'init+login:Api\\Live#finish', 'post:/l/[id]/continue' => 'init+login:Api\\Live#continue', 'post:/l/[id]/setPlayback' => 'init+login:Api\\Live#setPlayback', 'post:/l/[id]/setPlayback/cancel' => 'init+login:Api\\Live#cancelPlayback', 'post:/l/sign' => 'init+login:Api\\Live#sign', 'post:/l/[id]/stick' => 'init+login:Api\\Live#stick', 'post:/l/[id]/stick/cancel' => 'init+login:Api\\Live#stickCancel', 'post:/l/[id]/hide' => 'init+login:Api\\Live#hide', 'post:/l/[id]/hide/cancel' => 'init+login:Api\\Live#hideCancel', 'get:/l/[id]/learntime' => 'init+login:Api\\Live#learntime', 'get:/polyv/[vid]/token' => 'init+login:Api\\Live#polyvToken', ...], '/' => 'Index?tab=newest#block+index', '/newest' => 'Index?tab=newest#block+index', '/hottest' => 'Index?tab=hottest#block+index', '/subscribed' => 'init+login:Index?tab=subscribed#block+index', '/channel/[slug]/tag/[tag]' => 'Index?tab=channel#block+index', '/channel/[slug]' => 'Index?tab=channel#block+index', '/channel/[slug]/articles' => 'Article?tab=channel#block+index', '/channel/[slug]/questions' => 'Question?tab=channel#block+index', '/search' => 'Index#search', '/a/[id]' => 'Article#detail', '/a/[id]/downloads' => 'init+login:Article#downloadRecord', '/a/[id]/exportDownloads' => 'init+login:Article#exportDownloadRecord', '/a/[id]/edit' => 'init+login:Article#write', '/write' => 'init+login:Article#write', '/blogs/channel/[slug]' => 'Blog#index', '/blogs' => 'Blog#index', '/blog/[slug]' => 'Blog#blog+detail', '/blog/[slug]/setting' => 'init+login:Blog#blog+setting', '/questions' => 'Question?tab=newest#block+index', '/questions/newest' => 'Question?tab=newest#block+index', '/questions/hottest' => 'Question?tab=hottest#block+index', '/questions/unanswered' => 'Question?tab=unanswered#block+index', '/questions/channel/[slug]/tag/[tag]' => 'Question?tab=channel#block+index', '/questions/channel/[slug]' => 'Question?tab=channel#block+index', '/q/[id]' => 'Question#detail', '/q/[id]/edit' => 'init+login:Question#write', '/ask' => 'init+login:Question#write', '/q/[id]/answer/[aid]' => 'init+login:Question#detail', '/q/[id]/answer/[aid]/edit' => 'init+login:Question#answerEdit', '/events' => 'Activity?tab=newest#cities+index', '/events/newest' => 'Activity?tab=newest#cities+index', '/events/mine' => 'Activity?tab=mine#cities+index', '/events/signed' => 'Activity?tab=signed#cities+index', '/events/city/[city]' => 'Activity#cities+index', '/events/write' => 'init+login:Activity#write', '/e/[id]/edit' => 'init+login:Activity#write', '/e/[id]/join' => 'init+login:Activity#join', '/e/[id]/members' => 'init+login:Activity#members', '/e/[id]/members-hook' => 'init+login:Activity#membersHook', '/e/[id]/exportMembers' => 'init+login:Activity#exportMembers', '/e/[id]/exportMembersHook' => 'init+login:Activity#exportMembersHook', '/e/[id]' => 'Activity#detail', '/t/[slug]' => 'Tag#tag+block+index', '/t/[slug]/questions' => 'Tag#tag+block+questions', '/t/[slug]/articles' => 'Tag#tag+block+articles', '/u/[slug]' => 'User#user+index', '/u/[slug]/questions' => 'User#user+questions', '/u/[slug]/answers' => 'User#user+answers', '/u/[slug]/articles' => 'User#user+articles', '/u/[slug]/articles/trash' => 'User#user+trashedArticles', '/u/[slug]/[type]/following' => 'User#user+following', '/u/[slug]/fans' => 'User#user+fans', '/u/[slug]/bookmarks' => 'User#user+bookmarks', '/u/[slug]/ranks' => 'User#user+ranks', '/user/events' => 'init+login:User#events', '/user/captcha' => 'User#captcha', '/login' => 'Account#login', '/register' => 'Account#login', '/user/password' => 'Account#password', '/user/settings' => 'init+login:Account#settings', '/user/security' => 'init+login:Account#security', '/logout' => 'init+login:Account#logout', '/user/oauth/[type]?code' => 'OAuth#config+oAuth2Token', '/user/oauth/[type]' => 'OAuth#config+redirect', '/user/binding/[id]/[type]/cancel' => 'init+login:Account#bindingCancel', '/user/[id]/change' => 'init+login:Account#change', '/user/change/cancel' => 'init+login:Account#cancelChange', '/user/mail/unsubscribe' => 'User#unsubscribeMail', '/about' => 'Page#about', '/privacy' => 'Page#privacy', '/tos' => 'Page#tos', '/rules' => 'Page#rules', '/help' => 'Page#help', '/links' => 'Page#links', '/referer' => 'Page#referer', '/MP_verify_qFSAa4qd4Ri3EJOr.txt' => 'Page?title=qFSAa4qd4Ri3EJOr#text', '/ByteDanceVerify.html' => 'Page?title=Zd3BnU%2BycRCDS4Z3WT3X#html', '/sogousiteverification.txt' => 'Page?title=CHuGWalK2x#text', '/img/[id]' => 'Storage#image', '/file/[id]' => 'init+login:Storage#file', '/lives' => 'Live#index', '/lives/mine' => 'init+login:Live?tab=mine#index', '/lives/add' => 'init+login:Live#write', '/l/[id]/edit' => 'init+login:Live#write', '/l/[id]/members' => 'init+login:Live#members', '/l/[id]/exportMembers' => 'init+login:Live#exportMembers', '/l/[id]/learns' => 'init+login:Live#learns', '/l/[id]/exportLearns' => 'init+login:Live#exportLearns', '/l/[id]/cover' => 'Live#cover', '/l/[id]' => 'Live#detail', '/l/[id]/join' => 'Live#join', '/weblive/[id]' => 'Live#weblive', '/download' => 'File#block+index', '/download/apply' => 'init+login:File#apply', '/drafts' => 'init+login:Draft#index', '/topics' => 'Explore#index', '/topic/[id]' => 'Explore#detail', '/link' => 'Link#redirect', '/stopics/zhouyinpu' => 'Stopics#zhouyinpu', '/stopics/xingchencpu' => 'Stopics#xingchencpu', '/stopics/aliyun-yitian' => 'Stopics#yitian', '/stopics/avh-on-baidu-cloud' => 'Stopics#avh', '/stopics/anolis-os' => 'Stopics#anolis', '/ailab' => 'AILab#index', '/ailab/models/[id]' => 'AILab#detail', '/ailab/models' => 'AILab#models', '/books' => 'Read#index', '/search_sitemap/aijishu.txt' => 'Index#sitemapRedirect', '/search_sitemap/aijishu.xml' => 'Index#sitemap', 'send_mail' => 'Cli\\Queue#mail', 'send_marketing_mail' => 'Cli\\Queue#marketingMail', 'send_sms' => 'Cli\\Queue#aliSms', 'ranking' => 'Cli\\Ranking#ranking', 'import_tags' => 'Cli\\Import#tags', 'import_feed' => 'Cli\\Import#feed', 'hot_questions' => 'Cli\\Hot#questions', 'hot_articles' => 'Cli\\Hot#articles', 'wechat_events' => 'Cli\\WechatEventsQueue#events', 'update_live_status' => 'Cli\\Live#updateLivesStatus', 'update_affiliate' => 'Cli\\Affiliate#update', 'generateUser' => 'Cli\\GenerateUser#run', 'generateUserSF' => 'Cli\\GenerateUserSF#run', 'resetName' => 'Cli\\GenerateUserSF#resetName', 'activity_coming' => 'Cli\\Activity#notification', ...] ).../loader.php:48
40.0002398792L8\Mvc\Server->__construct( $routes = ['@' => 'Page#notFound', '/status.html' => 'null:Page#status', '/robots.txt' => 'null:Page#robots', '/api' => ['post:/article/add' => 'init+login:Api\\Article#add', 'post:/article/edit' => 'init+login:Api\\Article#edit', 'post:/question/add' => 'init+login:Api\\Question#add', 'post:/question/edit' => 'init+login:Api\\Question#edit', 'get:/channel/newest' => 'Api\\Feed?tab=newest#contents', 'get:/channel/hottest' => 'Api\\Feed?tab=hottest#contents', 'get:/channel/recommend' => 'Api\\Feed?tab=recommend#contents', 'get:/channel/subscribed' => 'init+login:Api\\Feed?tab=subscribed#contents', 'get:/channel/[id]/tag/[tagId]' => 'Api\\Feed?tab=newest#contents', 'get:/channel/[id]' => 'Api\\Feed?tab=newest#contents', 'get:/article/newest' => 'Api\\Article?tab=newest#articles', 'get:/article/hottest' => 'Api\\Article?tab=hottest#articles', 'get:/article/recommend' => 'Api\\Article?tab=recommend#articles', 'get:/article/subscribed' => 'Api\\Article?tab=subscribed#articles', 'get:/article/channel/[id]/tag/[tagId]' => 'Api\\Article?tab=channel#articles', 'get:/article/channel/[id]' => 'Api\\Article?tab=channel#articles', 'post:/article/[id]/blog/delete' => 'init+login:Api\\Article#deleteBlog', 'post:/article/[id]/delete' => 'init+login:Api\\Article#delete', 'post:/article/[id]/bookmark' => 'init+login:Api\\Article#bookmark', 'post:/article/[id]/bookmark/cancel' => 'init+login:Api\\Article#cancelBookmark', 'post:/article/[id]/vote/up' => 'init+login:Api\\Article#voteUp', 'post:/article/[id]/vote/up/cancel' => 'init+login:Api\\Article#voteUpCancel', 'post:/article/[id]/recommend' => 'init+login:Api\\Article#recommend', 'post:/article/[id]/recommend/cancel' => 'init+login:Api\\Article#recommendCancel', 'post:/article/[id]/stick' => 'init+login:Api\\Article#stick', 'post:/article/[id]/stick/cancel' => 'init+login:Api\\Article#stickCancel', 'post:/article/[id]/hide' => 'init+login:Api\\Article#hide', 'post:/article/[id]/hide/cancel' => 'init+login:Api\\Article#hideCancel', 'post:/article/[id]/report' => 'init+login:Api\\Article#report', 'post:/article/file' => 'Api\\Storage?type=file#uploadLargeFile', 'get:/question/newest' => 'Api\\Question?tab=newest#questions', 'get:/question/hottest' => 'Api\\Question?tab=hottest#questions', 'get:/question/unanswered' => 'Api\\Question?tab=unanswered#questions', 'get:/question/channel/[id]' => 'Api\\Question?tab=channel#questions', 'post:/question/[id]/delete' => 'init+login:Api\\Question#delete', 'post:/question/[id]/bookmark' => 'init+login:Api\\Question#bookmark', 'post:/question/[id]/bookmark/cancel' => 'init+login:Api\\Question#cancelBookmark', 'post:/question/[id]/vote/up' => 'init+login:Api\\Question#voteUp', 'post:/question/[id]/vote/up/cancel' => 'init+login:Api\\Question#voteUpCancel', 'post:/question/[id]/vote/down' => 'init+login:Api\\Question#voteDown', 'post:/question/[id]/vote/down/cancel' => 'init+login:Api\\Question#voteDownCancel', 'post:/question/[id]/follow' => 'init+login:Api\\Question#follow', 'post:/question/[id]/follow/cancel' => 'init+login:Api\\Question#cancelFollow', 'post:/question/[id]/report' => 'init+login:Api\\Question#report', 'post:/question/[id]/invite' => 'init+login:Api\\Question#invite', 'post:/question/[id]/invite/cancel' => 'init+login:Api\\Question#cancelInvite', 'post:/answer/add' => 'init+login:Api\\Answer#add', 'post:/answer/edit' => 'init+login:Api\\Answer#edit', 'post:/answer/[id]/delete' => 'init+login:Api\\Answer#delete', 'post:/answer/[id]/accept' => 'init+login:Api\\Answer#accept', 'post:/answer/[id]/accept/cancel' => 'init+login:Api\\Answer#acceptCancel', 'post:/answer/[id]/vote/up' => 'init+login:Api\\Answer#voteUp', 'post:/answer/[id]/vote/up/cancel' => 'init+login:Api\\Answer#voteUpCancel', 'post:/answer/[id]/vote/down' => 'init+login:Api\\Answer#voteDown', 'post:/answer/[id]/vote/down/cancel' => 'init+login:Api\\Answer#voteDownCancel', 'post:/answer/[id]/report' => 'init+login:Api\\Answer#report', 'get:/user/[id]/timeline' => 'Api\\User#timeline', 'post:/user/avatar' => 'init+login:Api\\Storage?type=avatar#upload+userAvatar', 'post:/user/register/send' => 'Api\\Account#sendCode', 'post:/user/register' => 'Api\\Account#register', 'post:/user/login' => 'Api\\Account#login', 'post:/user/[id]/follow' => 'init+login:Api\\User#follow', 'post:/user/[id]/follow/cancel' => 'init+login:Api\\User#cancelFollow', 'get:/user/search' => 'init+login:Api\\User#search', 'get:/user/events' => 'init+login:Api\\User#events', 'post:/user/events/viewedAll' => 'init+login:Api\\User#eventsViewedAll', 'post:/user/events/[id]/view' => 'init+login:Api\\User#eventsViewed', 'post:/user/privacy/allowed' => 'init+login:Api\\User#allowedPrivacy', 'post:/user/setting/info' => 'init+login:Api\\Account#infoSetting', 'post:/user/setting/notification' => 'init+login:Api\\Account#notificationSetting', 'post:/user/setting/privacy' => 'init+login:Api\\Account#privacySetting', 'post:/user/setting/mail' => 'init+login:Api\\Account#setMail', 'post:/user/setting/mail/confirm' => 'init+login:Api\\Account#setMailConfirm', 'post:/user/setting/phone' => 'init+login:Api\\Account#setPhone', 'post:/user/setting/phone/confirm' => 'init+login:Api\\Account#setPhoneConfirm', 'post:/user/setting/password' => 'init+login:Api\\Account#setPassword', 'post:/user/password/reset' => 'Api\\Account#resetPassword', 'post:/user/password/reset/proceed' => 'Api\\Account#resetPasswordProceed', 'post:/user/password/reset/confirm' => 'Api\\Account#resetPasswordConfirm', 'post:/user/[id]/report' => 'init+login:Api\\Comment#report', 'get:/blog/[id]/articles' => 'Api\\Article?tab=blog#articles', 'get:/blog/[id]/contents' => 'Api\\Blog#blog+contents', 'post:/blog/[id]/avatar' => 'init+login:Api\\Storage?type=avatar#upload+blogAvatar', 'post:/blog/add' => 'init+login:Api\\Blog#add', 'post:/blog/[id]/edit' => 'init+login:Api\\Blog#edit', 'post:/blog/[id]/follow' => 'init+login:Api\\Blog#follow', 'post:/blog/[id]/follow/cancel' => 'init+login:Api\\Blog#cancelFollow', 'post:/blog/[id]/author/invite' => 'init+login:Api\\BlogAuthor#invite', 'post:/blog/[id]/author/confirm' => 'init+login:Api\\BlogAuthor#confirm', 'post:/blog/[id]/author/refuse' => 'init+login:Api\\BlogAuthor#refuse', 'post:/blog/[id]/author/delete' => 'init+login:Api\\BlogAuthor#delete', 'post:/blog/[id]/author/change' => 'init+login:Api\\BlogAuthor#change', 'get:/comment/list/[id]' => 'Api\\Comment#comments', 'post:/comment/add' => 'init+login:Api\\Comment#add', 'post:/comment/edit' => 'init+login:Api\\Comment#edit', 'post:/comment/[id]/delete' => 'init+login:Api\\Comment#delete', 'post:/comment/[id]/vote/up' => 'init+login:Api\\Comment#voteUp', 'post:/comment/[id]/vote/up/cancel' => 'init+login:Api\\Comment#voteUpCancel', 'post:/comment/[id]/report' => 'init+login:Api\\Comment#report', 'post:/tag/add' => 'init+login:Api\\Tag#add', 'post:/tag/edit' => 'init+login:Api\\Tag#edit', 'get:/tag/default' => 'Api\\Tag#defaultTags', 'post:/tag/[id]/follow' => 'init+login:Api\\Tag#follow', 'post:/tag/[id]/follow/cancel' => 'init+login:Api\\Tag#cancelFollow', 'get:/reason/[model]/[method]' => 'init+login:Api\\Reason#getReasons', 'post:/storage/image' => 'init+login:Api\\Storage?type=image#upload+image', 'get:/storage/signature/upyun' => 'init+login:Api\\Storage?type=file#getUpyunSignature', 'get:/storage/signature' => 'init+login:Api\\Storage?type=file#getAliyunSignature', 'post:/storage/signature/qiniu' => 'init+login:Api\\Storage?type=file#getQiniuSignature', 'get:/wechat/events' => 'Api\\Wechat#events', 'post:/wechat/events' => 'Api\\Wechat#events', 'get:/wechat/menu' => 'Api\\Wechat#menu', 'get:/wechat/qrcode' => 'Api\\Wechat#qrcode', 'get:/wechat/checkLogin' => 'Api\\Wechat#checkLogin', 'post:/l/add' => 'init+login:Api\\Live#add', 'post:/l/[id]/edit' => 'init+login:Api\\Live#edit', 'post:/l/[id]/delete' => 'init+login:Api\\Live#delete', 'post:/l/[id]/finish' => 'init+login:Api\\Live#finish', 'post:/l/[id]/continue' => 'init+login:Api\\Live#continue', 'post:/l/[id]/setPlayback' => 'init+login:Api\\Live#setPlayback', 'post:/l/[id]/setPlayback/cancel' => 'init+login:Api\\Live#cancelPlayback', 'post:/l/sign' => 'init+login:Api\\Live#sign', 'post:/l/[id]/stick' => 'init+login:Api\\Live#stick', 'post:/l/[id]/stick/cancel' => 'init+login:Api\\Live#stickCancel', 'post:/l/[id]/hide' => 'init+login:Api\\Live#hide', 'post:/l/[id]/hide/cancel' => 'init+login:Api\\Live#hideCancel', 'get:/l/[id]/learntime' => 'init+login:Api\\Live#learntime', 'get:/polyv/[vid]/token' => 'init+login:Api\\Live#polyvToken', ...], '/' => 'Index?tab=newest#block+index', '/newest' => 'Index?tab=newest#block+index', '/hottest' => 'Index?tab=hottest#block+index', '/subscribed' => 'init+login:Index?tab=subscribed#block+index', '/channel/[slug]/tag/[tag]' => 'Index?tab=channel#block+index', '/channel/[slug]' => 'Index?tab=channel#block+index', '/channel/[slug]/articles' => 'Article?tab=channel#block+index', '/channel/[slug]/questions' => 'Question?tab=channel#block+index', '/search' => 'Index#search', '/a/[id]' => 'Article#detail', '/a/[id]/downloads' => 'init+login:Article#downloadRecord', '/a/[id]/exportDownloads' => 'init+login:Article#exportDownloadRecord', '/a/[id]/edit' => 'init+login:Article#write', '/write' => 'init+login:Article#write', '/blogs/channel/[slug]' => 'Blog#index', '/blogs' => 'Blog#index', '/blog/[slug]' => 'Blog#blog+detail', '/blog/[slug]/setting' => 'init+login:Blog#blog+setting', '/questions' => 'Question?tab=newest#block+index', '/questions/newest' => 'Question?tab=newest#block+index', '/questions/hottest' => 'Question?tab=hottest#block+index', '/questions/unanswered' => 'Question?tab=unanswered#block+index', '/questions/channel/[slug]/tag/[tag]' => 'Question?tab=channel#block+index', '/questions/channel/[slug]' => 'Question?tab=channel#block+index', '/q/[id]' => 'Question#detail', '/q/[id]/edit' => 'init+login:Question#write', '/ask' => 'init+login:Question#write', '/q/[id]/answer/[aid]' => 'init+login:Question#detail', '/q/[id]/answer/[aid]/edit' => 'init+login:Question#answerEdit', '/events' => 'Activity?tab=newest#cities+index', '/events/newest' => 'Activity?tab=newest#cities+index', '/events/mine' => 'Activity?tab=mine#cities+index', '/events/signed' => 'Activity?tab=signed#cities+index', '/events/city/[city]' => 'Activity#cities+index', '/events/write' => 'init+login:Activity#write', '/e/[id]/edit' => 'init+login:Activity#write', '/e/[id]/join' => 'init+login:Activity#join', '/e/[id]/members' => 'init+login:Activity#members', '/e/[id]/members-hook' => 'init+login:Activity#membersHook', '/e/[id]/exportMembers' => 'init+login:Activity#exportMembers', '/e/[id]/exportMembersHook' => 'init+login:Activity#exportMembersHook', '/e/[id]' => 'Activity#detail', '/t/[slug]' => 'Tag#tag+block+index', '/t/[slug]/questions' => 'Tag#tag+block+questions', '/t/[slug]/articles' => 'Tag#tag+block+articles', '/u/[slug]' => 'User#user+index', '/u/[slug]/questions' => 'User#user+questions', '/u/[slug]/answers' => 'User#user+answers', '/u/[slug]/articles' => 'User#user+articles', '/u/[slug]/articles/trash' => 'User#user+trashedArticles', '/u/[slug]/[type]/following' => 'User#user+following', '/u/[slug]/fans' => 'User#user+fans', '/u/[slug]/bookmarks' => 'User#user+bookmarks', '/u/[slug]/ranks' => 'User#user+ranks', '/user/events' => 'init+login:User#events', '/user/captcha' => 'User#captcha', '/login' => 'Account#login', '/register' => 'Account#login', '/user/password' => 'Account#password', '/user/settings' => 'init+login:Account#settings', '/user/security' => 'init+login:Account#security', '/logout' => 'init+login:Account#logout', '/user/oauth/[type]?code' => 'OAuth#config+oAuth2Token', '/user/oauth/[type]' => 'OAuth#config+redirect', '/user/binding/[id]/[type]/cancel' => 'init+login:Account#bindingCancel', '/user/[id]/change' => 'init+login:Account#change', '/user/change/cancel' => 'init+login:Account#cancelChange', '/user/mail/unsubscribe' => 'User#unsubscribeMail', '/about' => 'Page#about', '/privacy' => 'Page#privacy', '/tos' => 'Page#tos', '/rules' => 'Page#rules', '/help' => 'Page#help', '/links' => 'Page#links', '/referer' => 'Page#referer', '/MP_verify_qFSAa4qd4Ri3EJOr.txt' => 'Page?title=qFSAa4qd4Ri3EJOr#text', '/ByteDanceVerify.html' => 'Page?title=Zd3BnU%2BycRCDS4Z3WT3X#html', '/sogousiteverification.txt' => 'Page?title=CHuGWalK2x#text', '/img/[id]' => 'Storage#image', '/file/[id]' => 'init+login:Storage#file', '/lives' => 'Live#index', '/lives/mine' => 'init+login:Live?tab=mine#index', '/lives/add' => 'init+login:Live#write', '/l/[id]/edit' => 'init+login:Live#write', '/l/[id]/members' => 'init+login:Live#members', '/l/[id]/exportMembers' => 'init+login:Live#exportMembers', '/l/[id]/learns' => 'init+login:Live#learns', '/l/[id]/exportLearns' => 'init+login:Live#exportLearns', '/l/[id]/cover' => 'Live#cover', '/l/[id]' => 'Live#detail', '/l/[id]/join' => 'Live#join', '/weblive/[id]' => 'Live#weblive', '/download' => 'File#block+index', '/download/apply' => 'init+login:File#apply', '/drafts' => 'init+login:Draft#index', '/topics' => 'Explore#index', '/topic/[id]' => 'Explore#detail', '/link' => 'Link#redirect', '/stopics/zhouyinpu' => 'Stopics#zhouyinpu', '/stopics/xingchencpu' => 'Stopics#xingchencpu', '/stopics/aliyun-yitian' => 'Stopics#yitian', '/stopics/avh-on-baidu-cloud' => 'Stopics#avh', '/stopics/anolis-os' => 'Stopics#anolis', '/ailab' => 'AILab#index', '/ailab/models/[id]' => 'AILab#detail', '/ailab/models' => 'AILab#models', '/books' => 'Read#index', '/search_sitemap/aijishu.txt' => 'Index#sitemapRedirect', '/search_sitemap/aijishu.xml' => 'Index#sitemap', 'send_mail' => 'Cli\\Queue#mail', 'send_marketing_mail' => 'Cli\\Queue#marketingMail', 'send_sms' => 'Cli\\Queue#aliSms', 'ranking' => 'Cli\\Ranking#ranking', 'import_tags' => 'Cli\\Import#tags', 'import_feed' => 'Cli\\Import#feed', 'hot_questions' => 'Cli\\Hot#questions', 'hot_articles' => 'Cli\\Hot#articles', 'wechat_events' => 'Cli\\WechatEventsQueue#events', 'update_live_status' => 'Cli\\Live#updateLivesStatus', 'update_affiliate' => 'Cli\\Affiliate#update', 'generateUser' => 'Cli\\GenerateUser#run', 'generateUserSF' => 'Cli\\GenerateUserSF#run', 'resetName' => 'Cli\\GenerateUserSF#resetName', 'activity_coming' => 'Cli\\Activity#notification', ...] ).../App.php:71
50.0003399840L8\Mvc\Server::serve( $controller = 'Article#detail', $request = class L8\Mvc\Request { private $_ip = '216.73.216.241'; private $_acceptLangs = FALSE; private $_baseUrl = ''; private $_pathInfo = '/a/1060000000085644'; private $_method = NULL; private $_requestUri = '/a/1060000000085644'; private $_requestRoot = NULL; private $_referer = NULL; private $_isSecure = NULL; private $_isMobile = NULL; private $_jsonParams = []; private $_params = ['id' => '1060000000085644']; private $_isCli = FALSE; private $_route = '/a/[id]' }, $response = class L8\Mvc\Response { private $_httpCode = [100 => 'Continue', 101 => 'Switching Protocols', 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 307 => 'Temporary Redirect', 400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Timeout', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request-URI Too Long', 415 => 'Unsupported Media Type', 416 => 'Requested Range Not Satisfiable', 417 => 'Expectation Failed', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Timeout', 505 => 'HTTP Version Not Supported']; private $_cookies = [0 => [...]]; private $_statusCode = 200; private $_charset = 'UTF-8'; private $_contentType = 'text/html'; private $_headers = []; private $_result = class Ent\Result\Twig { private $_data = [...]; private $_template = 'article/detail.twig'; private ${L8\Mvc\Result\AbstractResult}_event = class L8\Mvc\Controller\ControllerEvent { ... } } }, $respond = ??? ).../Server.php:47
60.01491021432L8\Mvc\Response->respond( ).../Server.php:183
70.01491021664Ent\Result\Twig->render( ).../Response.php:149
80.01561063544Twig\Environment->display( $name = 'article/detail.twig', $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css']] ).../Twig.php:58
90.01581072528Twig\TemplateWrapper->display( $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css']] ).../Environment.php:291
100.01581072528Twig\Template->display( $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css']], $blocks = [] ).../TemplateWrapper.php:47
110.01591072528Twig\Template->displayWithErrorHandling( $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css']], $blocks = ['main' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_main'], 'footer' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_footer']] ).../Template.php:369
120.01591072528__TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc->doDisplay( $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css']], $blocks = ['main' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_main'], 'footer' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_footer']] ).../Template.php:396
130.01611084288Twig\Template->display( $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css'], 'moduleName' => 'article', 'EntDescription' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!'], $blocks = ['main' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_main'], 'footer' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_footer']] ).../991b880de2992dd600c40ca80c7a70708f2b669e843c19fe638175d0f1974d4a.php:50
140.01611084664Twig\Template->displayWithErrorHandling( $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css'], 'moduleName' => 'article', 'EntDescription' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!'], $blocks = ['head' => [0 => class __TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9 { ... }, 1 => 'block_head'], 'header' => [0 => class __TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9 { ... }, 1 => 'block_header'], 'main' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_main'], 'footer' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_footer']] ).../Template.php:369
150.01611084664__TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9->doDisplay( $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css'], 'moduleName' => 'article', 'EntDescription' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!'], $blocks = ['head' => [0 => class __TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9 { ... }, 1 => 'block_head'], 'header' => [0 => class __TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9 { ... }, 1 => 'block_header'], 'main' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_main'], 'footer' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_footer']] ).../Template.php:396
160.01731211576Twig\Template->displayBlock( $name = 'main', $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css'], 'moduleName' => 'article', 'EntDescription' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!'], $blocks = ['head' => [0 => class __TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9 { ... }, 1 => 'block_head'], 'header' => [0 => class __TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9 { ... }, 1 => 'block_header'], 'main' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_main'], 'footer' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_footer']], $useBlocks = ???, $templateContext = ??? ).../f77986c6d314722d2bfbb68da2fbb8f507d9b67c5b20e33c3a5ae3096f711a30.php:207
170.01731211576__TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc->block_main( $context = ['article' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $statusText = [...] }, 'title' => '重构——抽取方法', 'commentList' => class Ent\Value\Comment { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 0; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'excerpt' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!', 'relations' => class Ent\Value\Article { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 6; private ${L8\Mvc\Value\AbstractValue}_length = 6; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE; private $statusText = [...] }, 'EntKeywords' => 'AIoT,Java,Arm 服务器', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'Q9lkZYd48fj3X3o3', 'timestamp' => 1794665011, 'url' => 'https://community.aijishu.com/a/1060000000085644', 'signature' => 'e040849d3290d4024dbc5cec1f5e2fce7e5c9320', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=Q9lkZYd48fj3X3o3&timestamp=1794665011&url=https://community.aijishu.com/a/1060000000085644'], 'CSRFToken' => '509e7b0efb44fbcb0ea5c65fd9b52c91', 'links' => class Ent\Value\Link { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 22; private ${L8\Mvc\Value\AbstractValue}_multi = TRUE }, 'wxLogin' => 'https://open.weixin.qq.com/connect/qrconnect?appid=wx28bb22f416bf4d6b&redirect_uri=https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat&scope=snsapi_login&self_redirect=false&login_type=jssdk&style=dark&https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css', 'wxLoginParams' => ['id' => 'wx-login-qrcode', 'appid' => 'wx28bb22f416bf4d6b', 'scope' => 'snsapi_login', 'redirect_uri' => 'https%3A%2F%2Fcommunity.aijishu.com%2Fuser%2Foauth%2Fwechat', 'state' => '', 'style' => 'dark', 'href' => 'https://cdn-assets.aijishu.com/v-29880a42/public/wx-qrcode.css'], 'moduleName' => 'article', 'EntDescription' => '到处都是重复的代码?方法体又臭又长看不懂?快来试试抽取方法(Extract Method)吧,保证药到病除!'], $blocks = ['head' => [0 => class __TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9 { ... }, 1 => 'block_head'], 'header' => [0 => class __TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9 { ... }, 1 => 'block_header'], 'main' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_main'], 'footer' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_footer']] ).../Template.php:173
180.03111340224twig_get_attribute( $env = class Twig\Environment { private $charset = 'UTF-8'; private $loader = class Twig\Loader\FilesystemLoader { protected $paths = [...]; protected $cache = [...]; protected $errorCache = [...]; private $rootPath = '/Data/webapps/aijishu/portal/' }; private $debug = FALSE; private $autoReload = FALSE; private $cache = class Twig\Cache\FilesystemCache { private $directory = '/tmp/template/'; private $options = 0 }; private $lexer = NULL; private $parser = NULL; private $compiler = NULL; private $globals = []; private $resolvedGlobals = []; private $loadedTemplates = ['__TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc' => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, '__TwigTemplate_f886f99fcc833337a140021267c2ff818541876872dbdc8ce9d3901c7a7f353d' => class __TwigTemplate_f886f99fcc833337a140021267c2ff818541876872dbdc8ce9d3901c7a7f353d { ... }, '__TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9' => class __TwigTemplate_734d14ec28470defff3c4c29d599878cd0e3e81ebb74cc8775eed266b9c666e9 { ... }]; private $strictVariables = FALSE; private $templateClassPrefix = '__TwigTemplate_'; private $originalCache = '/tmp/template'; private $extensionSet = class Twig\ExtensionSet { private $extensions = [...]; private $initialized = TRUE; private $runtimeInitialized = TRUE; private $staging = class Twig\Extension\StagingExtension { ... }; private $parsers = [...]; private $visitors = [...]; private $filters = [...]; private $tests = [...]; private $functions = [...]; private $unaryOperators = [...]; private $binaryOperators = [...]; private $globals = NULL; private $functionCallbacks = [...]; private $filterCallbacks = [...]; private $lastModified = 0 }; private $runtimeLoaders = []; private $runtimes = []; private $optionsHash = '["Twig\\\\Extension\\\\CoreExtension","Twig\\\\Extension\\\\EscaperExtension","Twig\\\\Extension\\\\OptimizerExtension"]:7:4:3.0.4-DEV:0:0' }, $source = class Twig\Source { private $code = ''; private $name = 'article/detail.twig'; private $path = '/Data/webapps/aijishu/template/article/detail.twig' }, $object = class Ent\Value\User { private ${L8\Mvc\Value\AbstractValue}_originalData = ['id' => '1030000000084310', 'status' => 'available', 'rank' => '5', 'name' => '橙味菌', 'slug' => 'chengweijun', 'avatar' => '/286/967/2869670974-5e108d92bf10d', 'mail' => NULL, 'phone' => '15033593913', 'gender' => '0', 'description' => NULL, 'created' => '1578040720', 'modified' => '1578040720', 'activated' => '1578040720', 'affiliate' => 'sf', 'password' => '', 'certify_info' => NULL, 'certify_expire' => NULL, 'certify_type' => '0', 'last_login' => '1583722535', 'task_status' => '0000', 'lock_info' => NULL, 'lock_start' => '0', 'lock_end' => '0', 'meta' => NULL, 'ip_info' => '']; private ${L8\Mvc\Value\AbstractValue}_data = [0 => [...]]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $_avatarPrefix = 'https://cdn-avatar.aijishu.com'; private $statusText = ['available' => '正常', 'deleted' => '删除', 'unpublished' => '未发布', 'hidden' => '已隐藏', 'refuse' => '已拒绝', 'invitation' => '邀请中', 'blocked' => '已禁止', 'unactivated' => ' 未激活'] }, $item = 'descriptionExcerpt', $arguments = [], $type = 'any', $isDefinedTest = FALSE, $ignoreStrictCheck = FALSE, $sandboxed = FALSE, $lineno = 311 ).../991b880de2992dd600c40ca80c7a70708f2b669e843c19fe638175d0f1974d4a.php:629
190.03111340232L8\Mvc\Value\AbstractValue->__get( $name = 'descriptionExcerpt' ).../CoreExtension.php:1451
200.03111340712call_user_func_array:{/Data/webapps/aijishu/lib/L8/Mvc/Value/AbstractValue.php:198}( $function_name = [0 => class Ent\Value\User { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $_avatarPrefix = 'https://cdn-avatar.aijishu.com'; private $statusText = [...] }, 1 => 'getDescriptionExcerpt'], $parameters = [] ).../AbstractValue.php:198
210.03111340800Ent\Value\User->getDescriptionExcerpt( $limit = ??? ).../AbstractValue.php:198
220.03111340808L8\Mvc\Value\AbstractValue->__get( $name = 'descriptionText' ).../DescriptionTrait.php:25
230.03111341288call_user_func_array:{/Data/webapps/aijishu/lib/L8/Mvc/Value/AbstractValue.php:198}( $function_name = [0 => class Ent\Value\User { private ${L8\Mvc\Value\AbstractValue}_originalData = [...]; private ${L8\Mvc\Value\AbstractValue}_data = [...]; private ${L8\Mvc\Value\AbstractValue}_pos = 0; private ${L8\Mvc\Value\AbstractValue}_length = 1; private ${L8\Mvc\Value\AbstractValue}_multi = FALSE; private $_avatarPrefix = 'https://cdn-avatar.aijishu.com'; private $statusText = [...] }, 1 => 'getDescriptionText'], $parameters = [] ).../AbstractValue.php:198
240.03111341376Ent\Value\User->getDescriptionText( ).../AbstractValue.php:198
250.03111341384Util::markdown( $text = NULL ).../DescriptionTrait.php:14
260.03121343888HyperDown\Parser->makeHtml( $text = NULL ).../Util.php:76
270.03121352056HyperDown\Parser->initText( $text = NULL ).../Parser.php:159