dever 6 rokov pred
rodič
commit
8896a0f322
2 zmenil súbory, kde vykonal 13 pridanie a 14 odobranie
  1. 12 12
      stat/database/journal.php
  2. 1 2
      stat/lib/Journal.php

+ 12 - 12
stat/database/journal.php

@@ -31,18 +31,6 @@ return array
             //'list'        => true,
         ),
 
-        'journal_id'      => array
-        (
-            'type'      => 'int-11',
-            'name'      => '小刊',
-            'default'   => '',
-            'desc'      => '小刊',
-            'match'     => 'is_numeric',
-            'update'    => 'select',
-            'option'    => $journal,
-            'list'      => true,
-        ),
-
         'day_string'       => array
         (
             'type'      => 'varchar-60',
@@ -67,6 +55,18 @@ return array
             //'list'        => true,
         ),
 
+        'journal_id'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '小刊',
+            'default'   => '',
+            'desc'      => '小刊',
+            'match'     => 'is_numeric',
+            'update'    => 'select',
+            'option'    => $journal,
+            'list'      => true,
+        ),
+
         'order_num'       => array
         (
             'type'      => 'int-11',

+ 1 - 2
stat/lib/Journal.php

@@ -38,7 +38,6 @@ class Journal
         $where['option'] = $option;
 
         $journal = Dever::db('journal/info')->state(array('buy' => 1));
-        print_r($journal);
 
         if ($journal) {
             foreach ($journal as $k => $v) {
@@ -97,7 +96,7 @@ class Journal
         $update['buy_num'] = $buy_num;
         $update['buy_cash'] = $buy_cash;
         $update['journal_id'] = $info_id;
-        
+
         $where = array();
         $where['day_int'] = $update['day_int'];
         $where['journal_id'] = $update['journal_id'];