dever 3 years ago
parent
commit
28933acedd
1 changed files with 16 additions and 2 deletions
  1. 16 2
      app/shop/database/goods.php

+ 16 - 2
app/shop/database/goods.php

@@ -148,8 +148,8 @@ return array
             'desc'      => '',
             # 只有insert时才生效
             //'insert'    => true,
-            'search'    => 'date',
-            'list'      => 'date("Y-m-d H:i:s", {cdate})',
+            //'search'    => 'date',
+            //'list'      => 'date("Y-m-d H:i:s", {cdate})',
         ),
     ),
 
@@ -255,6 +255,20 @@ return array
             'col' => '*,total_num-sell_num as num',
         ),
 
+        # 获取后台列表
+        'list' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'status' => 'yes',
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'page' => array(15, 'list'),
+            'col' => '*',
+        ),
+
         # 推荐列表
         'getTop' => array
         (