使用技巧:

如果你买了本站的多款自动生成文章的插件,每个插件生成文章的链接不同,在宝塔后台定时生成的时候,想要一条定时任务随机生成多种文章的话可以把所有的文章生成链接放到一个php文件中,然后访问这个php,实现自动随机调用多个生成文章链接中的一个。


<?php
$urls = array(
'https://www.xxx.com/articleadd/ticheadd/huangliadd/event/tiche/token/kkmp326',
'https://www.xxx.com/articleadd/zhuangxiuadd/huangliadd/event/zhuangxiu/token/kkmp326',
'https://www.xxx.com/articleadd/jiehunadd/huangliadd/event/jiehun/token/kkmp326',
'https://www.xxx.com/articleadd/dongtuadd/huangliadd/event/dongtu/token/kkmp326',
'https://www.xxx.com/articleadd/kaiyeadd/huangliadd/event/kaiye/token/kkmp326',
'https://www.xxx.com/qm/contentadd/xingcontentadd/token/kkmp326',
'https://www.xxx.com/qm/contentadd/zicontentadd/token/kkmp326',
'https://www.xxx.com/articleadd/banjiaadd/huangliadd/event/banjia/token/kkmp326',
'https://www.xxx.com/articleadd/qiaoqianadd/huangliadd/event/qiaoqian/token/kkmp326',
'https://www.xxx.com/articleadd/caishenadd/caishenadd/token/kkmp326',
'https://www.xxx.com/articleadd/dinghunadd/huangliadd/event/dinghun/token/kkmp326',
'https://www.xxx.com/articleadd/anmenadd/huangliadd/event/anmen/token/kkmp326',
'https://www.xxx.com/articleadd/lingzhengadd/huangliadd/event/lingzheng/token/kkmp326',
'https://www.xxx.com/xhauto/xhauto/ai_articles/token/kkmp326/',
'https://www.xxx.com/txtpost/txtpost/txtpost/token/kkmp326'
);
 
// 随机获取一个URL的键名
$randomKey = array_rand($urls);
 
// 通过键名获取URL
$randomUrl = $urls[$randomKey];

$response = file_get_contents($randomUrl);
echo $response;

使用方法:

把你的生成文章的链接放到这个php中,比如存储为shengcheng.php,放到网站根目录,然后访问http://www.xxx.com/shengcheng.php,即可随机调用,随机生成!

声明:本站程序由奥顺互联开发,购买请联系作者微信:kkmp326 最近不接定制开发!