内容模型功能完成

This commit is contained in:
2020-04-01 22:20:11 +08:00
parent 85d33da0d4
commit 9dafceb2eb
32 changed files with 415 additions and 339 deletions

View File

@@ -22,6 +22,13 @@ class Content extends Validate{
$param = Request::param();
$map = [];
$map[] = ['model_id', '=', $param['model_id']];
if ($param['function'] == 'add') {
$map[] = ['is_show', 'IN', [1, 2]];
}else if ($param['function'] == 'edit') {
$map[] = ['is_show', 'IN', [1, 3]];
}
$attr = Attribute::where($map)->select();
$rule = [];
$message = [];