后台门户-常用操作-文档列表-编辑文档-提示未定义数组索引: model

后台门户-常用操作-文档列表-编辑文档-提示未定义数组索引: model
 
TIM图片20190228175838.png

2 个评论

// 独立模型只取该模型的字段,不包含系统字段
$where = [];
if ($model != '') {
$info['model'] = $model;

//$where[] = ['model', '=', $model];
$where['model'] = $model;

} else {
$where[] = ['model', 'in', [0, $info['model']]];
}

// 获取文档模型字段
// $where[] = ['status', '=', 1];
// $where[] = ['show', '=', 1];
$where['status'] = 1;
$where['show'] = 1;
这样改就好了

要回复文章请先登录注册