rabin 3 anni fa
parent
commit
7beb161daf
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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'] . '个';
         }