|
|
|
@ -242,7 +242,7 @@ class Server |
|
|
|
|
if (Cache::has('wx_server_drafttemplatelist')) { |
|
|
|
|
return Cache::get('wx_server_drafttemplatelist'); |
|
|
|
|
} |
|
|
|
|
$token = $this->getStableAccessToken(); |
|
|
|
|
$token = $this->getComponentAccessToken(); |
|
|
|
|
$list = []; |
|
|
|
|
if ($token) { |
|
|
|
|
$url = 'https://api.weixin.qq.com/wxa/gettemplatedraftlist?access_token=' . $token; |
|
|
|
@ -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->getComponentAccessToken(); |
|
|
|
|
$list = []; |
|
|
|
|