tp5.6在表中新添加的字段无法获取值

浏览:306 发布日期:2020/08/14 分类:ThinkPHP5专区 关键字: 字段缓存 新添加的字段的值不能获取
我在表中添加了新字段appCharge
用$project_data = $project->where(array("project_id"=>$key_data['project_id']))->find();
使用$project_data['appCharge']获取值是返回null
我把结果集用array("msg" => $project_data)返回到前端可以看到结果集中有
"appcharge": "1",我如何才能获取新添加新字段appCharge的值?
最佳答案
评论( 相关
后面还有条评论,点击查看>>