From 81977bb4d9626f4e91d362e46d9b75a2ce65d9e3 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Wed, 1 Mar 2023 18:18:05 +0800 Subject: [PATCH] chore: update weixin code cache expire --- .../uniCloud/cloudfunctions/uni-id-co/lib/utils/weixin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/weixin.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/weixin.js index 619c722..f07110b 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/weixin.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/weixin.js @@ -106,8 +106,8 @@ async function saveSecureNetworkCache ({ unionid, session_key: sessionKey }) - // 此处存储的是code的缓存,有效期两天即可 - const expiredSeconds = 2 * 24 * 60 * 60 + // 此处存储的是code的缓存,有效期三天即可 + const expiredSeconds = 3 * 24 * 60 * 60 await openDataCollection.doc(key).set({ value, -- GitLab