27 lines
477 B
PHP
Executable File
27 lines
477 B
PHP
Executable File
<?php
|
|
namespace App\Services\Github\Mod;
|
|
use App\Services\TomTool\Http;
|
|
|
|
class Base {
|
|
|
|
public function __construct()
|
|
{
|
|
$this->oHttp = new Http();
|
|
}
|
|
|
|
public function todayUpd()
|
|
{
|
|
|
|
$this->oHttp->sToUrl = env('api_url_freenode_base').'/'.'api/github/todayupd';
|
|
$r = $this->oHttp->send();
|
|
|
|
if ($r == 1) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
}
|