rabin 5 years ago
parent
commit
85b2b8d308
3 changed files with 12 additions and 5 deletions
  1. 6 0
      act/src/Order.php
  2. 5 5
      journal/database/info.php
  3. 1 0
      journal/database/star.php

+ 6 - 0
act/src/Order.php

@@ -137,6 +137,9 @@ class Order extends Core
 
         # 我的订单列表
         $where = array();
+        if ($this->data['uid'] < 0) {
+            $this->data['uid'] = -100;
+        }
         $where['uid'] = $this->data['uid'];
         if ($cate > 0) {
             $where['cate_id'] = $cate;
@@ -191,6 +194,9 @@ class Order extends Core
         $order = $this->getOrder($order_id);
 
         $where = array();
+        if ($this->data['uid'] < 0) {
+            $this->data['uid'] = -100;
+        }
         $where['create_uid'] = $this->data['uid'];
         $where['order_id'] = $order['order_id'];
         $where['type'] = 4;

+ 5 - 5
journal/database/info.php

@@ -691,7 +691,7 @@ $config = array
 				'state' => 1,
 			),
 			'type' => 'all',
-			'order' => array('reorder' => 'desc', 'id' => 'desc'),
+			'order' => array('reorder' => 'desc', 'pdate' => 'desc', 'id' => 'desc'),
 			'limit' => '0,1000',
 			'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
 		),
@@ -709,7 +709,7 @@ $config = array
 				'state' => 1,
 			),
 			'type' => 'all',
-			'order' => array('reorder' => 'desc', 'id' => 'desc'),
+			'order' => array('reorder' => 'desc', 'pdate' => 'desc', 'id' => 'desc'),
 			//'page' => array(10, 'list'),
 			'col' => $col,
 		),
@@ -729,7 +729,7 @@ $config = array
 				'state' => 1,
 			),
 			'type' => 'all',
-			'order' => array('reorder' => 'desc', 'id' => 'desc'),
+			'order' => array('reorder' => 'desc', 'pdate' => 'desc', 'id' => 'desc'),
 			'page' => array(10, 'list'),
 			'col' => $col,
 		),
@@ -771,7 +771,7 @@ $config = array
                 'state' => 1,
             ),
             'type' => 'all',
-            'order' => array('reorder' => 'desc','id' => 'desc'),
+            'order' => array('reorder' => 'desc', 'pdate' => 'desc','id' => 'desc'),
             'col' => '*,id as value|id',
         ),
 
@@ -805,7 +805,7 @@ $config = array
 				'state' => 1,
 			),
 			'type' => 'all',
-			'order' => array('reorder' => 'desc', 'id' => 'desc'),
+			'order' => array('reorder' => 'desc', 'pdate' => 'desc', 'id' => 'desc'),
 			//'page' => array(10, 'list'),
 			'col' => $col,
 		),

+ 1 - 0
journal/database/star.php

@@ -151,6 +151,7 @@ return array
             # 匹配的正则或函数 选填项
             'option' => array
             (
+                'info_id' => 'yes',
                 'state' => 1,
             ),
             'type' => 'all',