Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一堆代码,用于处理当前用户(设置 created_by 字段,在创建某些记录时发送邮件)。
但据我所知,您的管理命令中没有登录用户,所以问题是,如何以有效的登录用户身份运行管理命令?