@ -27,9 +27,9 @@ ChatGPT的横空出世真的改变了世界,用过的人都知道ChatGPT完全
------
**调整部分内容为配置文件形式优化拉取代码配置信息冲突**
拉取代码后请复制config.json_example 为 config.json
拉取代码后请复制config_example.json 为 config.json
linux下 进入项目目录执行 cp config.json_example config.json
linux下 进入项目目录执行 cp config_example.json config.json
配置定义如下
@ -1,15 +1,11 @@
<?php
$type = "个人";
// 读取JSON文件
$json = file_get_contents('config.json');
$json = file_get_contents('./config.json');
// 解码JSON数据
$configs = json_decode($json, true);
$isHome = false;
if (in_array($_SERVER["REMOTE_ADDR"], $configs['homeAddress'])) {
$isHome = true;
}
if ($isHome) {
$type = "内部";
} else {
if (strpos($_SERVER["HTTP_USER_AGENT"], "MicroMessenger")) {