no message
This commit is contained in:
1 parent
3cf5ad23d1
commit
410c2b344e
6 files changed
+155
No files matched your search
@@ -486,6 +486,38 @@ class ExecController extends Controller
|
||||
dd($sDateCodeStart);
|
||||
}
|
||||
|
||||
public function freenodeHtmlSingle($code)
|
||||
{
|
||||
|
||||
if (!$code) {
|
||||
echo "not have code";
|
||||
exit;
|
||||
}
|
||||
|
||||
$sFreenodeNewUrl = env("APP_URL")."/fn/single/".$code;
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $sFreenodeNewUrl);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||
|
||||
$sFreeNodeNewView = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
$sFreeNodePath = "fn/".$code.".html";
|
||||
$r = file_put_contents($sFreeNodePath, $sFreeNodeNewView);
|
||||
|
||||
if ($r == false) {
|
||||
echo "false";
|
||||
} else {
|
||||
echo "true";
|
||||
}
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
// 节点文章静态化,所有
|
||||
public function freenodeHtmlAll ()
|
||||
{
|
||||
$aFreenodeAll = ArticleList::where("type", "node")->get()->toArray();
|
||||
|
||||
Reference in new issue
Block a user