Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
yutao8 authored Jan 15, 2024
1 parent a2b00b7 commit a557781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
set_time_limit(0);
define('CACHE_PATH', dirname(__DIR__) . '/.cache/'); //缓存目录
define('CACHE_PATH', __DIR__ . '/.cache/'); //缓存目录
is_dir(CACHE_PATH) or mkdir(CACHE_PATH, 0777, true);
define('GH_TOKEN', $_ENV['GH_TOKEN'] ?? null); //github token github_pat_xxxxx https://github.com/settings/tokens?type=beta
define('GPT_URL', $_ENV['GPT_URL'] ?? null); //chatgpt api url
define('GPT_KEY', $_ENV['GPT_KEY'] ?? null); //chatgpt key
$listAll = getAllStarList('yutao8');
$listAll = getAllStarList('yutao8',true);
makeMarkdown($listAll);
echo file_get_contents('index.html');

Expand Down

0 comments on commit a557781

Please sign in to comment.