|
|
|
@ -137,8 +137,12 @@ class Merchant extends Controller |
|
|
|
|
$sort = empty($sort) ? "merchant_id" : $sort; |
|
|
|
|
$params = $this->request->param(); |
|
|
|
|
$params['is_select_mechant'] = 1; |
|
|
|
|
$list = $model->getList($params, intval($pageSize), $sort)->toArray(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$list = $model->getList($params, intval($pageSize), $sort)->toArray(); |
|
|
|
|
$param = $this->request->param(); |
|
|
|
|
$param['storeInfo'] = $this->storeInfo; |
|
|
|
|
foreach ($list['data'] as $kr => $r) { |
|
|
|
|
$res[$kr]['licenseImg'] = []; |
|
|
|
|
if ($r['license_img_id']) { |
|
|
|
@ -148,7 +152,7 @@ class Merchant extends Controller |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$modelgoods = new GoodsModel; |
|
|
|
|
$param = $this->request->param(); |
|
|
|
|
|
|
|
|
|
$param['merchantId'] = $r['merchant_id']; |
|
|
|
|
$listgoods = $modelgoods->getList($param, 3); |
|
|
|
|
$list['data'][$kr]['goodsInfo'] = $listgoods; |
|
|
|
|