修改key缓存时间逻辑

This commit is contained in:
Easy 2021-06-23 11:55:42 +08:00
parent db5fcf2b3b
commit 59b356a4bc
1 changed files with 1 additions and 1 deletions

View File

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