rabin 3 anni fa
parent
commit
7a4e145d3d
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 6 2
      app/card/src/Api.php

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

@@ -244,6 +244,7 @@ class Api extends Core
                 } elseif ($info['type'] == 1) {
                     $config_type = Dever::db('shop/info')->config['config_type'];
 
+                    /*
                     $info['shop_type'] = explode(',', $info['shop_type']);
                     $this->data['card'][$k]['minfo'] = array();
                     foreach ($info['shop_type'] as $tv) {
@@ -251,7 +252,8 @@ class Api extends Core
                             $this->data['card'][$k]['minfo'][] = $config_type[$tv];
                         }
                     }
-                    //$this->data['card'][$k]['minfo'] = implode('、', $this->data['card'][$k]['minfo']) . '可用';
+                    $this->data['card'][$k]['minfo'] = implode('、', $this->data['card'][$k]['minfo']) . '可用';
+                    */
 
                     
                     if ($info['shop_type'] && strstr($info['shop_type'], ',')) {
@@ -378,13 +380,15 @@ class Api extends Core
 
                     $type['shop_type'] = explode(',', $type['shop_type']);
 
+                    /*
                     $v['minfo'] = array();
                     foreach ($type['shop_type'] as $tv) {
                         if (isset($config_type[$tv])) {
                             $v['minfo'][] = $config_type[$tv];
                         }
                     }
-                    //$v['minfo'] = implode('、', $v['minfo']) . '可用';
+                    $v['minfo'] = implode('、', $v['minfo']) . '可用';
+                    */
 
                     if ($type['shop_type'] && strstr($type['shop_type'], ',')) {
                         $v['minfo'] = '全部店铺可用';