Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
因为使用了注解@task
所以会在启动的时候 在runtime里生成runtime/container/proxy/Phper666_MongoDb_MongoDb.proxy.php
__proxyCall 上面的部分 第一次执行是有值的。但是在__proxyCall再次调用本身的时候 $this->collectionName就没有值了。
这种情况只有在config/autoload/crontab.php 里调用的时候 才会出现。
如果直接在命令行执行,是直接调用的vendor里的MongoDb.php 这时候就不会发生。我也比较纳闷。
线上问题 希望可以合并,这样我就不用自己打包发布了。