dever 6 vuotta sitten
vanhempi
commit
052119a5b4
2 muutettua tiedostoa jossa 14 lisäystä ja 1 poistoa
  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'),
 			'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)
 	{
-		if ($type >= 11) {
+		if ($type >= 12) {
 			$content = Dever::array_decode($content);
 		} else {
 			$content = array();