$base_url . '/api/ApiMap/test', ]; } public function test() { return \Yz::Return(true, '获取成功', [ 'name' => env('APP_NAME'), 'datetime' => date('Y-m-d H:i:s'), ]); } public function list($type) { $list = self::public(); switch ($type) { case 'h5': $list = array_merge($list, self::h5()); break; } return \Yz::Return(true, '获取成功', [ 'list' => $list ]); } }