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;
$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;
这样改就好了