图片管理增加筛选访客图片选项

This commit is contained in:
WispX
2019-05-08 21:45:51 +08:00
parent 49569036c5
commit fcda0498c4
2 changed files with 4 additions and 2 deletions
@@ -38,7 +38,7 @@ class Images extends Base
$where = json_decode($where, true);
if (null == $where) {
$where = [
'suspicious' => 0
'suspicious' => 0,
];
}
$model = new ImagesModel();
@@ -63,7 +63,8 @@ class Images extends Base
'keyword' => $keyword,
'strategyList' => $this->strategyList,
'strategy' => isset($where['strategy']) ? $where['strategy'] : '',
'suspicious' => isset($where['suspicious']) ? $where['suspicious'] : 0
'suspicious' => isset($where['suspicious']) ? $where['suspicious'] : 0,
'user_id' => isset($where['user_id']) ? $where['user_id'] : null,
]);
return $this->fetch();
@@ -21,6 +21,7 @@
{foreach $strategyList as $key => $value}
<option value='{"strategy": "{$key}"}' {if $key eq $strategy}selected{/if}>{$value.name}</option>
{/foreach}
<option value='{"user_id": "0"}' {eq name="user_id" value="0"} selected{/eq}>访客图片</option>
<option value='{"suspicious": "1"}' {eq name="suspicious" value="1"} selected{/eq}>可疑图片</option>
</select>
<input type="hidden" name="page" value="1">