wang hou sheng 8 months ago
parent fa4eaed3f7
commit 075bf1dd05
  1. 4
      app/common/library/wxserver/Server.php

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

Loading…
Cancel
Save