$ch->code(), 'name' => $ch->name(), 'scenes' => implode(' / ', $ch->scenes()), 'scene' => Payment::defaultScene($code), 'switch' => $switchOn ? '已开启' : '已关闭', 'params' => $ch->configured() ? '已配置' : '未配置(缺商户参数)', 'usable' => Payment::enabled($code), 'notify' => Payment::notifyUrl($code), ]; } return View::fetch('channel/index', [ 'rows' => $rows, 'sdk' => PayFactory::available() ? '已加载(yansongda/pay)' : '未安装:composer require yansongda/pay', 'default' => Payment::defaultChannel(), 'command' => 'php think paycenter:check --ping', ]); } }