diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 85fafe03..0ec397f6 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -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');