Commit afd01214 by duwenjun

变量优化

parent 78359593
Showing with 2 additions and 1 deletions
......@@ -232,7 +232,6 @@ class QuoteModel extends Model
return $list;
} else {
$list = $list->paginate($limit, ['*'], 'page', $page)->toArray();
$list['data'] = $this->handleData($list['data'], $type);
$msg = '成功';
......@@ -264,8 +263,10 @@ class QuoteModel extends Model
$list['count']['confirmed_status'] = $this->commonQuery($map, $input, 2);
}
if (isset($list['count'])){
$msg = $list['count'];
}
}
// return [0, '获取成功', $list['data'], $list['total']];
return [0, $msg, $list['data'], $list['total']];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment