|
@@ -46,7 +46,7 @@ class Goods extends Controller
|
|
|
$query = ShopGoods::mQuery();
|
|
|
// 加载对应数据
|
|
|
$this->type = $this->request->get('type', 'index');
|
|
|
- if ($this->type === 'index') $query->where($admin_id)->where(['deleted' => 0]);
|
|
|
+ if ($this->type === 'index') $query->where($admin_id)->where(['deleted' => 0,'examine'=>1]);
|
|
|
elseif ($this->type === 'recycle') $query->where(['deleted' => 1]);
|
|
|
else $this->error("无法加载 {$this->type} 数据列表!");
|
|
|
|