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