Update ShopOrder.php

This commit is contained in:
邹景立 2021-01-28 11:39:49 +08:00
parent 53dfa80a68
commit e1705815fe

View File

@ -66,7 +66,9 @@ class ShopOrder extends Controller
$db = $this->_query('DataUser')->like('phone#from_phone,nickname#from_nickname')->db();
if ($db->getOptions('where')) $query->whereRaw("from in {$db->field('id')->buildSql()}");
// 列表选项卡
if (is_numeric($this->type = trim(input('type', 'ta'), 't'))) $query->where(['status' => $this->type]);
if (is_numeric($this->type = trim(input('type', 'ta'), 't'))) {
$query->where(['status' => $this->type]);
}
// 分页排序处理
$query->where(['deleted' => 0])->order('id desc');
if (input('output') === 'json') {