|
@@ -139,7 +139,8 @@ class Coupon
|
|
|
$shop_coupon = Dever::db('shop/coupon')->select($where);
|
|
|
$data['shop'] = array();
|
|
|
foreach ($shop_coupon as $k1 => $v1) {
|
|
|
- $shop = Dever::db('shop/info')->getOne(array('id' => $v1['shop_id'], 'city' => $data['city']));
|
|
|
+
|
|
|
+ $shop = Dever::load('shop/lib/info')->fetch($v1['shop_id'], $data['city'], Dever::input('lng'), Dever::input('lat'));
|
|
|
if ($shop) {
|
|
|
$data['shop'][] = $shop;
|
|
|
}
|