|
|
@ -76,10 +76,12 @@ class Store extends Controller |
|
|
|
public function platformList(): Json |
|
|
|
public function platformList(): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
//$list = Channel::withoutGlobalScope()->where('status', 1)->whereIn('code',['jd','sn','zy','xqtx'])->select(); |
|
|
|
//$list = Channel::withoutGlobalScope()->where('status', 1)->whereIn('code',['jd','sn','zy','xqtx'])->select(); |
|
|
|
$list = Channel::withoutGlobalScope()->where('status', 1)->whereIn('code',['zy'])->select(); |
|
|
|
//$list = Channel::withoutGlobalScope()->where('status', 1)->whereIn('code',['zy'])->select(); |
|
|
|
|
|
|
|
$list = Channel::withoutGlobalScope()->where('status', 1)->select(); |
|
|
|
$platformList = []; |
|
|
|
$platformList = []; |
|
|
|
foreach ($list as $key => $value) { |
|
|
|
foreach ($list as $key => $value) { |
|
|
|
$platformList[$value['code']] = $value['name']; |
|
|
|
//$platformList[$value['code']] = $value['name']; |
|
|
|
|
|
|
|
$platformList[$value['code']] = $value['alias']; |
|
|
|
} |
|
|
|
} |
|
|
|
//$platformList = config('app.platformList'); |
|
|
|
//$platformList = config('app.platformList'); |
|
|
|
return $this->renderSuccess($platformList); |
|
|
|
return $this->renderSuccess($platformList); |
|
|
|