rabin %!s(int64=3) %!d(string=hai) anos
pai
achega
8eb8c4b9a0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/card/src/Api.php

+ 1 - 1
app/card/src/Api.php

@@ -385,11 +385,11 @@ class Api extends Core
                     # 可用
                     $no = false;
                 }
+                $v['type'] = $type = Dever::db('card/type')->find($v['info']['type_id']);
 
                 if ($no) {
                     $this->data['no_card'][] = $v;
                 } else {
-                    $v['type'] = $type = Dever::db('card/type')->find($v['info']['type_id']);
                     /*
                     $type['shop_type'] = explode(',', $type['shop_type']);
                     $v['minfo'] = array();