From afb14327912cde762adbe0b4f46f0234fb337b27 Mon Sep 17 00:00:00 2001 From: "cn.yimian.xyz" Date: Sat, 31 Oct 2020 17:33:42 +0800 Subject: [PATCH] add log --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index f17ac8d..a9ce8b7 100755 --- a/index.php +++ b/index.php @@ -95,6 +95,7 @@ if(!in_array($__from, $whiteList) && $type == "moe"){ if($_num > 50) { header("Location: https://api.vvhan.com/api/acgimg"); + yimian__log("log_api", array("api" => "img", "timestamp" => date('Y-m-d H:i:s', time()), "ip" => ip2long(getIp()), "_from" => get_from(), "content" => 'https://api.vvhan.com/api/acgimg')); die(); } }