这家伙有点懒,还没写个性签名!
1·将这个 action 所在 controller 继承于 yii\console\Controller 就可以使用 console 执行; 2·最好是将这个文件放在 commands 目录下,方便管理。
@齐天大圣 请问您是怎么解决的呢?