diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 150c3764..13afd5ba 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -324,7 +324,7 @@ class Server public function getTemplatelist(): array { if (Cache::has('wx_server_templatelist')) { - //return Cache::get('wx_server_templatelist'); + return Cache::get('wx_server_templatelist'); } $token = $this->getStableAccessToken(); $list = []; @@ -332,7 +332,6 @@ class Server $url = 'https://api.weixin.qq.com/wxa/gettemplatelist?access_token=' . $token . '&template_type=1'; $result = $this->curlGet($url); $result = json_decode($result, true); - return $result; if ($result && !empty($result['template_list'])) { $template_list = $result['template_list']; foreach ($template_list as $value) {