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 16, 2024
1 parent 39d5f58 commit 0a206de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
set_time_limit(0);
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
define('GH_TOKEN', $_SERVER['GH_TOKEN'] ?? null); //github token github_pat_xxxxx https://github.com/settings/tokens?type=beta
define('GPT_URL', $_SERVER['GPT_URL'] ?? null); //chatgpt api url
define('GPT_KEY', $_SERVER['GPT_KEY'] ?? null); //chatgpt key
$username = isset($_ENV['GITHUB_ACTOR']) ? $_ENV['GITHUB_ACTOR'] : 'yutao8';
var_dump($_SERVER);die;

GH_TOKEN or die('GH_TOKEN is null!');

$listAll = getAllStarList($username);
Expand Down

0 comments on commit 0a206de

Please sign in to comment.