cfn/app/Http/Controllers/HtmlController.php
2025-02-24 12:07:54 +08:00

56 lines
1.3 KiB
PHP
Executable File

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\ArticleList;
//use App\Services\Time;
use voku\helper\AntiXSS;
//use App\Models\Tags;
class HtmlController extends Controller
{
// public function client()
// {
//
// $sUrlBase = env('APP_URL').'/client/single/';
//
// $sHtmlPathBase = "client/";
//
// $aArticleCode = [
// '1001',
// '1002',
// '1003',
// '1004',
// '1005',
// '1006',
// '1007',
// '1008',
// ];
//
// $ch = curl_init();
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
//
// foreach ($aArticleCode as $iCode) {
//
// $sUrl = $sUrlBase.$iCode;
// $sHtmlPath = $sHtmlPathBase.$iCode.'.html';
//
// curl_setopt($ch, CURLOPT_URL, $sUrl);
//
// $sArticleView = curl_exec($ch);
//
// $r = file_put_contents($sHtmlPath, $sArticleView);
//
// echo $r;
// echo "<br>";
// }
//
// curl_close($ch);
//
// }
}