dever 6 سال پیش
والد
کامیت
941c8d2262
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 1 1
      act/database/order.php
  2. 4 1
      act/lib/Subscribe.php

+ 1 - 1
act/database/order.php

@@ -536,7 +536,7 @@ return array
             'type' => 'all',
             'order' => array('id' => 'desc'),
             'page' => array(10, 'list'),
-            'col' => 'order_id,name,buy_num,cdate',
+            'col' => 'order_id,name,buy_num,cdate,cash',
         ),
     ),
 );

+ 4 - 1
act/lib/Subscribe.php

@@ -74,8 +74,11 @@ class Subscribe
         if (!$info) {
             $where['source'] = $source;
             Dever::db($table)->insert($where);
+            return true;
         }
 
+        return false;
+
         # 更新订阅数
         $where = array();
         $where['data_id'] = $id;
@@ -85,6 +88,6 @@ class Subscribe
         $table = Dever::config('base')->type_table[$type];
         Dever::db($table)->update(array('where_id' => $id, 'num_ding' => $total));
 
-        return true;
+        return false;
     }
 }