no message
This commit is contained in:
parent
da2de3cd19
commit
0ca8d1b8c4
@ -19,9 +19,11 @@ class HelperController extends Controller
|
|||||||
|
|
||||||
public function timeLost($sArticleTime)
|
public function timeLost($sArticleTime)
|
||||||
{
|
{
|
||||||
$oAntiXss = new AntiXSS();
|
// $oAntiXss = new AntiXSS();
|
||||||
|
|
||||||
$sTimeEnd = $oAntiXss->xss_clean($sArticleTime);
|
// $sTimeEnd = $oAntiXss->xss_clean($sArticleTime);
|
||||||
|
|
||||||
|
// $sTimeEnd = $sArticleTime;
|
||||||
|
|
||||||
$sTimeLost = Time::Lost(time(), strtotime($sArticleTime));
|
$sTimeLost = Time::Lost(time(), strtotime($sArticleTime));
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@ namespace App\Services\Cron;
|
|||||||
use App\Services\TomTool\Telegram\Slave as TeleSlave;
|
use App\Services\TomTool\Telegram\Slave as TeleSlave;
|
||||||
//use App\Services\TomTool\Telegram\Master as TeleMaster;
|
//use App\Services\TomTool\Telegram\Master as TeleMaster;
|
||||||
//use App\Models\SiteMap as ModelSiteMap;
|
//use App\Models\SiteMap as ModelSiteMap;
|
||||||
//use App\Services\TomTool\HttpV2;
|
use App\Services\TomTool\Http;
|
||||||
//use Symfony\Component\Yaml\Yaml;
|
//use Symfony\Component\Yaml\Yaml;
|
||||||
use App\Models\ArticleList as ModelArticle;
|
use App\Models\ArticleList as ModelArticle;
|
||||||
|
|
||||||
@ -42,6 +42,15 @@ final class ArticleLive
|
|||||||
$oArticleClient->updated_at = time();
|
$oArticleClient->updated_at = time();
|
||||||
$oArticleClient->save();
|
$oArticleClient->save();
|
||||||
|
|
||||||
|
$oHttp = new Http();
|
||||||
|
|
||||||
|
$oHttp->sMethod = "get";
|
||||||
|
$oHttp->bIsJson = "true";
|
||||||
|
$oHttp->sToUrl = env("APP_URL")."/exec/html/client";
|
||||||
|
$r = $oHttp->send();
|
||||||
|
|
||||||
|
echo "\n - $r";
|
||||||
|
|
||||||
$aData["ArticleLive::client() - ok"] = [
|
$aData["ArticleLive::client() - ok"] = [
|
||||||
"code" => $oArticleClient->code,
|
"code" => $oArticleClient->code,
|
||||||
"title" => $oArticleClient->title,
|
"title" => $oArticleClient->title,
|
||||||
@ -49,7 +58,7 @@ final class ArticleLive
|
|||||||
"update_at::old" => $sUpdatedAtOld,
|
"update_at::old" => $sUpdatedAtOld,
|
||||||
];
|
];
|
||||||
|
|
||||||
tomd($aData);
|
var_dump($aData);
|
||||||
|
|
||||||
TeleSlave::log()->enableSlaveQueue(false)->send($aData);
|
TeleSlave::log()->enableSlaveQueue(false)->send($aData);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user