rabin 2 years ago
parent
commit
b409e91a08
2 changed files with 21 additions and 2 deletions
  1. 20 1
      service/bill/database/sell.php
  2. 1 1
      service/bill/lib/Cron.php

+ 20 - 1
service/bill/database/sell.php

@@ -23,7 +23,12 @@ $type = array
 (
     1 => '直推业绩',
     2 => '团队业绩',
-    10 => '手动发放',
+);
+
+$ftype = array
+(
+    1 => '自动发放',
+    2 => '手动发放',
 );
 
 return array
@@ -130,6 +135,20 @@ return array
             'list_order' => 7,
         ),
 
+        'stype'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '发放类型',
+            'default'   => '1',
+            'desc'      => '发放类型',
+            'match'     => 'is_numeric',
+            'search'    => 'select',
+            'update'    => 'checkbox',
+            'option'    => $stype,
+            'list'      => true,
+            'list_order' => 8,
+        ),
+
         'type_id'      => array
         (
             'type'      => 'int-11',

+ 1 - 1
service/bill/lib/Cron.php

@@ -12,7 +12,7 @@ class Cron
         $month = Dever::input('month', date('Y-m'));
         $start_time = $month .'-01 00:00:00';
 		$end_time = date('Y-m-d', strtotime($start_time. ' +1 month -1 day')).' 23:59:59';
-		$where['type'] = '2,10';
+		$where['type'] = '2';
         $where['start'] = Dever::maketime($start_time);
         $where['end'] = Dever::maketime($end_time);
         $data = Dever::db('bill/sell')->getNumByTime($where);