ThinkPHP5报错"Indirect modification of overloaded element of XXX has no effect"的解决方法

{{ time }}

可能因为你遍历的是对象, 而不是数组, 所以在补充值的时候报错; 可以先把对象转成有效数组, 然后再遍历.