猿敲月下码 · 2019年10月19日

一起来学Java8(一)——函数式编程

在这篇文章中,我们将了解到在Java8下如何进行函数式编程。

函数式编程

所谓的函数式编程就是把函数名字当做值进行传递,然后接收方拿到这个函数名进行调用。

首先来看下JavaScript如何进行函数调用

var Person = {
    sayHello: function(name) {
        alert('hello ' + name);
    }
};

function work(fn) {
    fn('Jim');
}

work(Person.sayHello); // hello Jim

在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。

Java8中的函数式编程

在Java中,充当函数的角色是类中方法,在本篇文章当中提到的函数泛指方法。

接下来看下Java8中一个简单的函数式编程例子:

import java.util.function.Consumer;

class Person {
    public static void sayHello(String name) {
        System.out.println("hello " + name);
    }
}

public class TestPerson {

    public static void main(String[] args) {
        work(Person::sayHello); // hello Jim
    }
    
    public static void work(Consumer<String> consumer) {
        consumer.accept("Jim");
    }
}

从这个例子中可以看到,Java8传递函数的方式跟JavaScript不一样,在Java8当中传递函数的方式是:方法引用::方法名称,如:String.valueOf,String.toString。接收参数Consumer可以先不用去了解,后面会讲到。

为了接收传递过来的函数引用,Java设计者提出了一个函数式接口的概念

函数式接口

函数式接口定义:一个接口里面只有一个抽象方法。

如下面几个接口都是函数式接口:

  • Consumer
  • Supplier
  • Runnable
  • Callable

查看Runnable类的源码可以发现,在类上方定义了一个@FunctionalInterface注解

@FunctionalInterface
public interface Runnable {
    public abstract void run();
}
  • @FunctionalInterface注解的作用:

当做一个标记使用,标记当前接口是一个函数式接口,如果你的接口有多个抽象方法或没有抽象方法,那么会编译报错。它的作用有点类似于@override注解,有辅助作用,但不是必须的。如果你想设计一个函数式接口,那么最好把它加上。

// 编译不通过,必须要有一个抽象方法
@FunctionalInterface
public interface InterfaceA {
    
}

// 编译通过,只有一个抽象方法
@FunctionalInterface
public interface InterfaceB {
    void run();
}

// 编译不通过,只能有一个抽象方法
@FunctionalInterface
public interface InterfaceC {
    void run();
    
    void run2();
}

// 编译通过,run2是默认方法,并不是抽象方法
// 在这里只有一个run抽象方法
@FunctionalInterface
public interface InterfaceD {
    void run();
    
    default void run2() {};
}

在例子InterfaceD中涉及到了接口默认方法default void run2() {};,这里略过不讲,后续文章中会有提到。

我们可以实现一个自定义的函数式接口,替代Consumer

// 自定义函数式接口
@FunctionalInterface
public interface FunctionCaller<T> {
    void call(T t);
}

public class TestPerson2 {

    public static void main(String[] args) {
        work(Person::sayHello);
    }
    
    public static void work(FunctionCaller<String> caller) {
        caller.call("Jim");
    }
}

小结

本篇主要讲解了在Java8下如何进行函数式编程,以及如何定义和使用一个函数式接口。

定期分享技术干货,一起学习,一起进步!
推荐阅读
关注数
0
文章数
3

( ! ) 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/1060000000018840'; private $_method = NULL; private $_requestUri = '/a/1060000000018840'; private $_requestRoot = NULL; private $_referer = NULL; private $_isSecure = NULL; private $_isMobile = NULL; private $_jsonParams = []; private $_params = ['id' => '1060000000018840']; 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.01571183808L8\Mvc\Response->respond( ).../Server.php:183
70.01571184040Ent\Result\Twig->render( ).../Response.php:149
80.01641225920Twig\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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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.01661234904Twig\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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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.01661234904Twig\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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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.01661234904Twig\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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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.01661234904__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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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.01691246664Twig\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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。'], $blocks = ['main' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_main'], 'footer' => [0 => class __TwigTemplate_4e1c94b12692330a0be02a0a30ed84d76a3eb1de7ec5852532698a907f6a2fbc { ... }, 1 => 'block_footer']] ).../991b880de2992dd600c40ca80c7a70708f2b669e843c19fe638175d0f1974d4a.php:50
140.01691247040Twig\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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。'], $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.01691247040__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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。'], $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.01811373952Twig\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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。'], $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.01811373952__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' => '一起来学Java8(一)——函数式编程', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。', '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' => 'Java,学习分享', 'allowDownload' => FALSE, 'downloadLimitType' => 'task', 'pageName' => 'detail', 'wechatQrcode' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEh8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAycllVQkFMREhjdkMxZXR5dk5IY3cAAgSdVfhqAwQAjScA', 'signPackage' => ['appId' => 'wxd2f93f15c9e73adc', 'nonceStr' => 'gMWxyrIY6yyu2ydf', 'timestamp' => 1794665008, 'url' => 'https://community.aijishu.com/a/1060000000018840', 'signature' => 'cbe4153188d1a7ac73d11aaf3a7beb882141470a', 'rawString' => 'jsapi_ticket=LIKLckvwlJT9cWIhEQTwfOR0M1-ny5w7fa1RhaCvcWZR2Njwk3PPcRC19OHkZ7gPxHfTIZobf0nR9UJ9qb9XzQ&noncestr=gMWxyrIY6yyu2ydf&timestamp=1794665008&url=https://community.aijishu.com/a/1060000000018840'], 'CSRFToken' => '980f44171ba6fb501349201edfb3c116', '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' => '在这个例子中,sayHello函数被当做一个参数传递到另一个work函数当中,然后work调用给定的函数。'], $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.03171502224twig_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' => '1030000000018838', 'status' => 'available', 'rank' => '5', 'name' => '猿敲月下码', 'slug' => 'mooncode', 'avatar' => '/368/751/3687517084-5daa6257128d3', 'mail' => NULL, 'phone' => '13735811050', 'gender' => '0', 'description' => NULL, 'created' => '1571447304', 'modified' => '1571447304', 'activated' => '1571447304', 'affiliate' => '', 'password' => '$P$BLuOsKC8xkgPWPbgseLazP5t/wMasc.', 'certify_info' => NULL, 'certify_expire' => NULL, 'certify_type' => '0', 'last_login' => '1571447304', '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.03171502232L8\Mvc\Value\AbstractValue->__get( $name = 'descriptionExcerpt' ).../CoreExtension.php:1451
200.03171502712call_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.03171502800Ent\Value\User->getDescriptionExcerpt( $limit = ??? ).../AbstractValue.php:198
220.03181502808L8\Mvc\Value\AbstractValue->__get( $name = 'descriptionText' ).../DescriptionTrait.php:25
230.03181503288call_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.03181503376Ent\Value\User->getDescriptionText( ).../AbstractValue.php:198
250.03181503384Util::markdown( $text = NULL ).../DescriptionTrait.php:14
260.03181505888HyperDown\Parser->makeHtml( $text = NULL ).../Util.php:76
270.03181514056HyperDown\Parser->initText( $text = NULL ).../Parser.php:159