Browse Source

修改错误 不要用ob_clean

lvhao 1 day ago
parent
commit
9881231117
1 changed files with 5 additions and 1 deletions
  1. 5 1
      core/CoreApp/controllers/Warehouse.php

+ 5 - 1
core/CoreApp/controllers/Warehouse.php

@@ -1861,7 +1861,11 @@ class Warehouse extends Start_Controller {
 				    foreach ($data as $k=>$v)
 		            {
 					    $type = ($v['type']==1)?'入库':'出库';
-					    $out .= $t[$v['lx']].$type.' :'.date('Y-m-d H:i',$v['time']).'<br>';
+					    if(isset($t[$v['lx']])){
+					        $out .= $t[$v['lx']].$type.' :'.date('Y-m-d H:i',$v['time']).'<br>';
+					    }else{
+					        $out .= $type.' :'.date('Y-m-d H:i',$v['time']).'<br>';
+					    }
 				    }
 				}
 				$rows[$key]['outread'] = trim($out,'<br>');