|
|
|
@ -130,9 +130,9 @@ class Merchant extends Controller |
|
|
|
|
public function list(): Json { |
|
|
|
|
$model = new MerchantModel; |
|
|
|
|
$pageSize = $this->request->param('pageSize'); |
|
|
|
|
$pageSize = empty($pageSize) ?? 15; |
|
|
|
|
$pageSize = empty($pageSize) ? 15 : $pageSize; |
|
|
|
|
$sort = $this->request->param('sort'); |
|
|
|
|
$sort = empty($sort) ?? "merchant_id"; |
|
|
|
|
$sort = empty($sort) ? "merchant_id" : $sort; |
|
|
|
|
$list = $model->getList($this->request->param(), intval($pageSize), $sort)->toArray(); |
|
|
|
|
|
|
|
|
|
foreach ($list['data'] as $kr => $r) { |
|
|
|
|