@ -321,11 +321,11 @@ class Server
/**
* @notes:代码模板列表
* @param $type
* @param int $type
* @return array
* @author: wanghousheng
*/
public function getTemplatelist($type): array
public function getTemplatelist(int $type = 0): array
{
if (!$type && Cache::has('wx_server_templatelist')) {
return Cache::get('wx_server_templatelist');