@@ -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)) {