rabin 3 years ago
parent
commit
63107e5721
2 changed files with 5 additions and 3 deletions
  1. 1 1
      service/bill/database/tixian.php
  2. 4 2
      service/bill/lib/Tixian.php

+ 1 - 1
service/bill/database/tixian.php

@@ -172,7 +172,7 @@ return array
             # 读取另外表的关联方式
             'sync'      => array('cash_id', 'id'),
             'search'    => 'select',
-            'list'      => true,
+            //'list'      => true,
             'option'	=> $cash_status,
             //'list_name' => '交易状态<br />发放状态',
             //'list'      => 'Dever::load("bill/lib/tixian.order_num#status",{id})',

+ 4 - 2
service/bill/lib/Tixian.php

@@ -44,10 +44,12 @@ class Tixian
     public function order_num($id){
         $info = Dever::db('bill/tixian')->find($id);
         $cdate = date('Y-m-d H:i',$info['cdate']);
-        $operdate = date('Y-m-d H:i',$info['operdate']);
-        if(!$operdate){
+        if ($info['operdate']) {
+            $operdate = date('Y-m-d H:i',$info['operdate']);
+        } else {
             $operdate = '-';
         }
+
         $html['name'] = $info['order_num'].'<br />'.$cdate.'<br />'.$operdate;
         $html['money'] = $info['ycash'].'<br />'.$info['cash'].'<br />'.$info['yue'];
         $cash = Dever::db('bill/cash')->find($id);