rabin 3 years ago
parent
commit
c5fcf2733d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/card/src/Api.php

+ 2 - 0
app/card/src/Api.php

@@ -241,6 +241,7 @@ class Api extends Core
                 $v['info'] = $this->data['card'][$k]['info'] = Dever::db('card/info')->find($v['card_id']);
 
                 if (!$v['info']) {
+                    unset($this->data['card'][$k]);
                     continue;
                 }
 
@@ -250,6 +251,7 @@ class Api extends Core
 
                 if (isset($v['eddate']) && $v['eddate'] && $v['eddate'] > 0) {
                     if ($v['eddate'] <= $time) {
+                        unset($this->data['card'][$k]);
                         continue;
                     }
                 }