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