@@ -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',
),
);
@@ -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;