|
|
@ -15,7 +15,7 @@ namespace app\admin\controller; |
|
|
|
use think\response\Json; |
|
|
|
use think\response\Json; |
|
|
|
use app\admin\controller\Controller; |
|
|
|
use app\admin\controller\Controller; |
|
|
|
use app\admin\model\Channel as ChannelModel; |
|
|
|
use app\admin\model\Channel as ChannelModel; |
|
|
|
|
|
|
|
use app\common\model\UploadFile; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 商家后台菜单控制器 |
|
|
|
* 商家后台菜单控制器 |
|
|
|
* Class Menu |
|
|
|
* Class Menu |
|
|
@ -34,12 +34,12 @@ class Channel extends Controller |
|
|
|
{ |
|
|
|
{ |
|
|
|
$model = new ChannelModel; |
|
|
|
$model = new ChannelModel; |
|
|
|
$list = $model->getList()->toArray(); |
|
|
|
$list = $model->getList()->toArray(); |
|
|
|
foreach ($list['data'] as $kr => $r) { |
|
|
|
foreach ($list['data'] as $kr => &$r) { |
|
|
|
$res[$kr]['licenseImg'] = []; |
|
|
|
$r['licenseImg'] = []; |
|
|
|
if ($r['license_img_id']) { |
|
|
|
if ($r['license_img_id']) { |
|
|
|
$img_ids = explode(",", $r['license_img_id']); |
|
|
|
$img_ids = explode(",", $r['license_img_id']); |
|
|
|
$files = UploadFile::getFileList($img_ids); |
|
|
|
$files = UploadFile::getFileList($img_ids, 0); |
|
|
|
$list['data'][$kr]['licenseImg'] = $files ?: null; |
|
|
|
$r['licenseImg'] = $files ?: null; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|