|
|
|
@ -237,9 +237,9 @@ class Server |
|
|
|
|
* @return array|mixed |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function getTemplatedraftlist() |
|
|
|
|
public function getTemplatedraftlist($type) |
|
|
|
|
{ |
|
|
|
|
if (Cache::has('wx_server_drafttemplatelist')) { |
|
|
|
|
if (!$type && Cache::has('wx_server_drafttemplatelist')) { |
|
|
|
|
return Cache::get('wx_server_drafttemplatelist'); |
|
|
|
|
} |
|
|
|
|
$token = $this->getComponentAccessToken(); |
|
|
|
@ -318,12 +318,13 @@ class Server |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:代码模板列表 |
|
|
|
|
* @param $type |
|
|
|
|
* @return array |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function getTemplatelist(): array |
|
|
|
|
public function getTemplatelist($type): array |
|
|
|
|
{ |
|
|
|
|
if (Cache::has('wx_server_templatelist')) { |
|
|
|
|
if (!$type && Cache::has('wx_server_templatelist')) { |
|
|
|
|
return Cache::get('wx_server_templatelist'); |
|
|
|
|
} |
|
|
|
|
$token = $this->getComponentAccessToken(); |
|
|
|
|