[update] Log

This commit is contained in:
Lkeme 2021-04-06 19:33:36 +08:00
parent 11d5f2aa1f
commit 2d50437b70
2 changed files with 8 additions and 17 deletions

View File

@ -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": "最强搞事王",

View File

@ -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);