From 1bc809cc3eb7a9b65c8665d206ee851396218746 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Sat, 27 Apr 2024 17:13:24 +0800 Subject: [PATCH] 1 --- app/common/library/wxserver/Wholesaler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/library/wxserver/Wholesaler.php b/app/common/library/wxserver/Wholesaler.php index c85f82cf..67fd75cf 100644 --- a/app/common/library/wxserver/Wholesaler.php +++ b/app/common/library/wxserver/Wholesaler.php @@ -57,6 +57,7 @@ class Wholesaler $data = $this->crypt->fromXml($encryptXml); if (!empty($data['ComponentVerifyTicket'])) { $ticket = $data['ComponentVerifyTicket']; + Cache::set('wholesaler_component_verify_ticket', $ticket); } } return $ticket; @@ -97,7 +98,7 @@ class Wholesaler return Cache::get('wholesaler_component_access_token'); } $url = 'https://api.weixin.qq.com/cgi-bin/component/api_component_token'; - $ticket = Cache::get('component_verify_ticket'); + $ticket = Cache::get('wholesaler_component_verify_ticket'); if (!empty($ticket)) { $data = []; $data['component_appid'] = self::APPID;