mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 09:30:10 +08:00
[update] Log
This commit is contained in:
parent
11d5f2aa1f
commit
2d50437b70
@ -66,18 +66,6 @@
|
||||
"expire_at": "2021-04-30 23:59:59",
|
||||
"remarks": "时间不名,暂定一个月。"
|
||||
},
|
||||
{
|
||||
"url": "https://www.bilibili.com/blackboard/activity-YxhUEb7UwQ.html",
|
||||
"title": "种草大作战特别篇",
|
||||
"description": "活动期间每天分享页面,新增一次机会。",
|
||||
"sid": "0cc8ffd7-8d56-11eb-8597-246e966235d8",
|
||||
"login": "true",
|
||||
"follow": "false",
|
||||
"share": "true",
|
||||
"draw_times": 2,
|
||||
"expire_at": "2021-01-01 11:11:11",
|
||||
"remarks": "2021年4月02日开始,先指定为过期。"
|
||||
},
|
||||
{
|
||||
"url": "https://www.bilibili.com/blackboard/activity-M22oqFLY1w.html",
|
||||
"title": "最强搞事王",
|
||||
|
||||
@ -46,6 +46,9 @@ class Log
|
||||
private static function writeLog($type, $message)
|
||||
{
|
||||
if (getenv('APP_WRITE_LOG') == 'true') {
|
||||
if ($type == 'DEBUG' && getenv("APP_DEBUG") != 'true') {
|
||||
return;
|
||||
}
|
||||
$path = './' . getenv("APP_LOG_PATH") . '/';
|
||||
if (!file_exists($path)) {
|
||||
mkdir($path);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user