$data = MallUser::where(true)->getData(); return $this->success('获取数据成功',$data);
Using thinkphp 5.1.37 LTS version, I need to query the original data of the data, because the model uses a getter, use the model getData () method appears, the previously used tp5.0 is no problem. After comparing the model source code of the two versions, it is indeed true that this version does not have this method. Why does this method need to be removed from this version? Is there any way to achieve this?
Encapsulate the getData query method in the model yourself. The TP5 model class does not have this method.