dever 3 years ago
parent
commit
056f6882ec
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/Api.php

+ 10 - 0
src/Api.php

@@ -22,6 +22,16 @@ class Api
 		), 1) . '" />';
 	}
 
+	# 获取同一个key下的多个模板
+	public function getList($key)
+	{
+		$where['key'] = $key;
+		$template = Dever::db('poster/template')->getAll($where);
+
+		return $template;
+	}
+
+	# 获取某个模板
     public function get($name, $key, $set, $update = false, $num = 1)
 	{
 		if (strstr($key, ',') || is_numeric($key)) {