作者 王智

daima

... ... @@ -307,7 +307,7 @@ class Index extends Api
if ($param['type'] == 1) {
$map3['is_show'] = ['eq', 1];
}
$rult = Db::name('seller')->where($map3)->where($map)->where($map2)->order('id desc')->page($param['pages'], $param['rows'])->select();
$rult = Db::name('seller')->where($map3)->where($map)->where($map2)->order('id desc')->select();
$count = Db::name('seller')->where($map3)->where($map)->where($map2)->order('id desc')->select();
if (empty($rult)) {
//如果为空
... ... @@ -332,6 +332,7 @@ class Index extends Api
}
$newarr = array_column($ruestul, 'from');
array_multisort($newarr, SORT_ASC, $ruestul);
$ruestul = $this->page_array($param['rows'], $param['pages'], $ruestul, 0);
$list = [
'count' => count($count),
'list' => $ruestul
... ...