> 应该按照#36中提示的方法调用,ctx.attachments是一个set方法,所以不是函数,需要使用ctx.attachments = 
> {...}来使用。 Bruce-Lee <[email protected]> 于2020年1月3日周五 上午11:52写道:
> […](#)
> const dubbo = new Dubbo({ //todo }); dubbo.use(async(ctx, next) => { const 
> uuid = uuid(); ctx.attachments({ uuid }) await next(); }) 
> 按此方法调用有报错(attachment非function),但按#36 <#36> 调用成功。 — You are receiving this 
> because you were mentioned. Reply to this email directly, view it on GitHub 
> <#72?email_source=notifications&email_token=AAECEECN2IIKASSWY6HWTVLQ32ZBXA5CNFSM4GJLMWL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIAGWGY#issuecomment-570452763>,
>  or unsubscribe 
> <https://github.com/notifications/unsubscribe-auth/AAECEEG3PI3ZADNBOI4CW5LQ32ZBXANCNFSM4GJLMWLQ>
>  .

大牛,邀请您加钉钉群了,有问题想请教。

[ Full content available at: https://github.com/apache/dubbo-js/issues/72 ]
This message was relayed via gitbox.apache.org for 
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to