dever 6 年之前
父节点
当前提交
44cd00a1e4
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      stat/database/journal.php
  2. 1 0
      stat/lib/Journal.php

+ 2 - 2
stat/database/journal.php

@@ -136,13 +136,13 @@ return array
         'cdate'     => array
         (
             'type'      => 'int-11',
-            'name'      => '创建时间',
+            'name'      => '最新统计时间',
             'match'     => array('is_numeric', time()),
             'desc'      => '',
             # 只有insert时才生效
             'insert'    => true,
             //'search'    => 'date',
-            //'list'      => 'date("Y-m-d H:i:s", {cdate})',
+            'list'      => 'date("Y-m-d H:i", {cdate})',
         ),
     ),
 

+ 1 - 0
stat/lib/Journal.php

@@ -97,6 +97,7 @@ class Journal
         $update['buy_num'] = $buy_num;
         $update['buy_cash'] = $buy_cash;
         $update['journal_id'] = $info_id;
+        $update['cdate'] = time();
 
         $where = array();
         $where['day_int'] = $update['day_int'];