|
|
|
@ -35,7 +35,7 @@ class Import extends Controller |
|
|
|
|
$params['store_id'] = 0; |
|
|
|
|
$model = new ImportModel; |
|
|
|
|
$platform = $this->getUserPlatform(); |
|
|
|
|
$params['channels'] = $platform ? array_column($platform->toArray(), "code") : []; |
|
|
|
|
$params['channels'] = $this->admin['user']['role'] == 0 ? [] : ($platform ? array_column($platform->toArray(), "code") : []); |
|
|
|
|
$list = $model->getList($params); |
|
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
|
} |
|
|
|
|