图片管理增加筛选访客图片选项
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user