From 65f9befa9cdb753bf81c6ec193a29cf455855601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 18 Mar 2021 16:17:20 +0800 Subject: [PATCH] Update Wxapp.php --- app/data/controller/api/Wxapp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/data/controller/api/Wxapp.php b/app/data/controller/api/Wxapp.php index 360fa4cb7..ae6686620 100644 --- a/app/data/controller/api/Wxapp.php +++ b/app/data/controller/api/Wxapp.php @@ -118,7 +118,7 @@ class Wxapp extends Controller } $result = Crypt::instance($this->config)->session($code); if (isset($result['openid']) && isset($result['session_key'])) { - $this->app->cache->set($code, $result, 3600); + $this->app->cache->set($code, $result, 60); return [$result['openid'], $cache['unionid'] ?? '', $result['session_key']]; } elseif (isset($result['errmsg'])) { $this->error($result['errmsg']);