把这三种格式改成 type=格式php 从接口中获取数据$data = file_get_contentshttpavhostgaymp4xjjtxt; 将数据按行分割成数组$mp4List = exploden $data; 随机获取一行mp4值$randomIndex = array_rand$mp4List;$randomMp4 = trim$mp4List$randomIndex; 直接输
';
// 输出json格式
$json = array('type' => 'mp4', 'mp4' => $randomMp4);
echo json_encode($json);
// 输出text格式
echo 'type=mp4&' . $randomMp4;
?>
原文地址: https://www.cveoy.top/t/topic/eB7d 著作权归作者所有。请勿转载和采集!