From 59b356a4bc6279a5c50346d8d0a264e219890959 Mon Sep 17 00:00:00 2001 From: Easy Date: Wed, 23 Jun 2021 11:55:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9key=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 8c73c4c..a26b32d 100644 --- a/index.php +++ b/index.php @@ -77,7 +77,7 @@ function send_to_wecom($text, $wecom_cid, $wecom_secret, $wecom_aid, $wecom_toui $response = curl_exec($ch); if ($response !== false && REDIS_ON) { - redis()->set(REDIS_KEY, $access_token, REDIS_EXPIRED); + redis()->set(REDIS_KEY, $access_token, ['nx', 'ex'=>REDIS_EXPIRED]); } return $response; }