|
@@ -241,7 +241,12 @@ class Api extends Core
|
|
|
$this->data['card'][$k]['minfo'] = '仅限' . $city['name'] . '可用';
|
|
|
}
|
|
|
}
|
|
|
- } elseif ($info['type'] == 1) {
|
|
|
+ } elseif ($info['type'] == 2 && $v['shop_id']) {
|
|
|
+ $shop = Dever::db('shop/info')->find($v['shop_id']);
|
|
|
+ if ($shop) {
|
|
|
+ $this->data['card'][$k]['minfo'] = '限' . $shop['name'] . '可用';
|
|
|
+ }
|
|
|
+ } else {
|
|
|
$config_type = Dever::db('shop/info')->config['config_type'];
|
|
|
|
|
|
/*
|
|
@@ -261,12 +266,6 @@ class Api extends Core
|
|
|
} elseif ($info['shop_type'] && isset($config_type[$info['shop_type']])) {
|
|
|
$this->data['card'][$k]['minfo'] = $config_type[$info['shop_type']] . '可用';
|
|
|
}
|
|
|
-
|
|
|
- } elseif ($info['type'] == 2 && $v['shop_id']) {
|
|
|
- $shop = Dever::db('shop/info')->find($v['shop_id']);
|
|
|
- if ($shop) {
|
|
|
- $this->data['card'][$k]['minfo'] = '限' . $shop['name'] . '可用';
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
$this->data['card'][$k]['cinfo'] = '';
|