dever 7 年之前
父節點
當前提交
052119a5b4
共有 2 個文件被更改,包括 14 次插入1 次删除
  1. 13 0
      database/info.php
  2. 1 1
      src/Api.php

+ 13 - 0
database/info.php

@@ -269,5 +269,18 @@ return array
 			'order' => array('page_number' => 'desc'),
 			'order' => array('page_number' => 'desc'),
 			'col' => 'page_number',
 			'col' => 'page_number',
 		),
 		),
+
+		'getData' => array
+		(
+			# 匹配的正则或函数 选填项
+			'option' => array
+			(
+				'product_id' => 'yes',
+				'state' => 1,
+			),
+			'type' => 'all',
+			'order' => array('page_number' => 'asc', 'reorder' => 'asc', 'id' => 'asc'),
+			'col' => '*',
+		),
 	)
 	)
 );
 );

+ 1 - 1
src/Api.php

@@ -227,7 +227,7 @@ class Api
 
 
 	private function getContent($type, $content)
 	private function getContent($type, $content)
 	{
 	{
-		if ($type >= 11) {
+		if ($type >= 12) {
 			$content = Dever::array_decode($content);
 			$content = Dever::array_decode($content);
 		} else {
 		} else {
 			$content = array();
 			$content = array();