no message
This commit is contained in:
parent
d5cc1ed646
commit
70f9f0c810
@ -3,6 +3,7 @@
|
||||
namespace App\Services\TG\Hook\Mod;
|
||||
//use App\Services\TomTool\Http;
|
||||
use App\Models\Option as ModelOption;
|
||||
use App\Models\ArticleList;
|
||||
|
||||
class Test extends Base {
|
||||
|
||||
@ -26,6 +27,23 @@ class Test extends Base {
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 重新生成今天文章
|
||||
public function ReToday()
|
||||
{
|
||||
// 先删除今日
|
||||
$sCode = date("Ymd");
|
||||
ArticleList::where("code", $sCode)->delete();
|
||||
|
||||
$this->oHttp->sMethod = "get";
|
||||
$this->oHttp->sToUrl = env("APP_URL")."/exec/freenode/up";
|
||||
$this->oHttp->bIsJson = true;
|
||||
// $this->oHttp->aData = [];
|
||||
$r = $this->oHttp->send();
|
||||
|
||||
return $r;
|
||||
}
|
||||
|
||||
public function FreenodeCrawUrl()
|
||||
{
|
||||
$aOption = ModelOption::_all();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user