lqmac 7 months ago
parent 94ac5a7674
commit e98675d392
  1. 6
      app/store/controller/Store.php

@ -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);

Loading…
Cancel
Save