你和这个世界只差60秒!
声明:目的地-Destination|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权
转载:转载请注明原文链接 - 每天60秒读懂世界
前程似锦、未来可期、寻得良人、共赴白头,祝你也祝我。
这个不错啊,每天都更新,我以为出新文章了
@棋 : 恩恩 加了个定时任务,修改创建时间。哈哈哈
@Chrison : 怎么弄?我也要
@荒野孤灯 : 睡了一觉,才看到。你是说的每天发布新的这个功能是吧???
@Chrison : 我是在主题目录下,新建了一个文件夹other,创建了一个文件CustomInterface.php。<?php /** * 自定义接口 * @author 目的地-Destination blog.chrison.cn * @package custom */ //error_reporting(0); $options = Helper::options(); if ($_SERVER['REQUEST_METHOD'] == 'GET') { if (@$_GET['opt'] == '60s') { $db = Typecho_Db::get(); $db->query($db->update('table.contents ')->rows(array('created' => time(),'modified' => time()))->where('cid = ?', 你的文章cid)); echo '60s'; die; } }
@荒野孤灯 : 然后我是用的宝塔,所以直接加计划任务,计划周期选择你要定时发布的时间,定时访问链接https://blog.xxx.cn/?opt=60s,就行了
@荒野孤灯 : 还有一步就是,functions.php的最上面引入文件,require_once 'other/CustomInterface.php';
@Chrison : 666 ,TKS
哈哈,3000的月工资也不影响我关心世界大事。
@wu先生 : 哈哈哈哈
文字版接口是啥?我之前的好像失效了。
@荒野孤灯 : 我的也失效了。https://blog.chrison.cn/work/223.html用知乎接口调用的。文章里也有方法。稍微修改下
微言微语
@柳橙睿 : 突然想到,这个页面内容要优化下。
原来你博客写了教程
这个怎么做的
@YCP : 恩。文章:https://blog.chrison.cn/work/223.html
棋 初识
这个不错啊,每天都更新,我以为出新文章了
Chrison 博主
@棋 : 恩恩 加了个定时任务,修改创建时间。哈哈哈
荒野孤灯 博友
@Chrison : 怎么弄?我也要
Chrison 博主
@荒野孤灯 : 睡了一觉,才看到。你是说的每天发布新的这个功能是吧???
Chrison 博主
@Chrison : 我是在主题目录下,新建了一个文件夹other,创建了一个文件CustomInterface.php。<?php /** * 自定义接口 * @author 目的地-Destination blog.chrison.cn * @package custom */ //error_reporting(0); $options = Helper::options(); if ($_SERVER['REQUEST_METHOD'] == 'GET') { if (@$_GET['opt'] == '60s') { $db = Typecho_Db::get(); $db->query($db->update('table.contents ')->rows(array('created' => time(),'modified' => time()))->where('cid = ?', 你的文章cid)); echo '60s'; die; } }
Chrison 博主
@荒野孤灯 : 然后我是用的宝塔,所以直接加计划任务,计划周期选择你要定时发布的时间,定时访问链接https://blog.xxx.cn/?opt=60s,就行了
Chrison 博主
@荒野孤灯 : 还有一步就是,functions.php的最上面引入文件,require_once 'other/CustomInterface.php';
荒野孤灯 博友
@Chrison : 666 ,TKS
wu先生 朋友
哈哈,3000的月工资也不影响我关心世界大事。
Chrison 博主
@wu先生 : 哈哈哈哈
荒野孤灯 博友
文字版接口是啥?我之前的好像失效了。
Chrison 博主
@荒野孤灯 : 我的也失效了。https://blog.chrison.cn/work/223.html
用知乎接口调用的。文章里也有方法。稍微修改下
柳橙睿 博友
微言微语
Chrison 博主
@柳橙睿 : 突然想到,这个页面内容要优化下。
YCP 好友
原来你博客写了教程
YCP 好友
这个怎么做的
Chrison 博主
@YCP : 恩。文章:https://blog.chrison.cn/work/223.html