rabin 3 年之前
父节点
当前提交
7beb161daf
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/cash/lib/Set.php

+ 3 - 1
app/cash/lib/Set.php

@@ -39,7 +39,9 @@ class Set
 
         $info = is_array($info) ? $info : Dever::db($table)->one($info);
         $other = Dever::db($type . '/info')->find($info[$type . '_id']);
-
+        if (!$other) {
+            return '';
+        }
         if ($type == 'store') {
             return $this->statDate($info['type'], $info['day']) . '与'.$other['name'].'对账单数量是否正确<br />对账数量' . $info['num'] . '个';
         }