关于thinkphp5 返回数组提示variable type error: array

在这里插入图片描述
控制器代码
在这里插入图片描述

公共模块
在这里插入图片描述
成功数据
在这里插入图片描述

具体情况是TP5访问控制器,不能用return直接返回数组。
决解问题参考
http://www.kancloud.cn/manual/thinkphp5/118017
http://www.thinkphp.cn/topic/42263.html
https://blog.csdn.net/dhywjx/article/details/79998500

猜你喜欢

转载自blog.csdn.net/lxy_hegh/article/details/88685546
今日推荐