dever 3 年之前
父节点
当前提交
27077913ac
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/shop/database/info.php
  2. 1 1
      app/shop/lib/Info.php

+ 1 - 1
app/shop/database/info.php

@@ -555,7 +555,7 @@ return array
                 'state' => 1,
             ),
             'type' => 'one',
-            'col' => 'id,name,`desc`,truename,mobile,lng,lat,address,open,worktime,method,gotime,city,area,province,county,town,coupon_city',
+            'col' => 'id,name,`desc`,truename,mobile,lng,lat,address,open,worktime,method,gotime,city,area,province,county,town,coupon_city,pdesc',
         ),
     ),
 );

+ 1 - 1
app/shop/lib/Info.php

@@ -110,7 +110,7 @@ class Info
         if ($id) {
             $where .= ' and id = ' . $id;
         }
-        $sql = 'select id,name,`desc`,truename,mobile,lng,lat,address,open,worktime,method,gotime,round((st_distance(point(lng, lat), point('.$lng.', '.$lat.'))*111195)/1000, 2) as distance from {table} where '.$where.' order by distance asc';
+        $sql = 'select id,name,`desc`,truename,mobile,lng,lat,address,open,worktime,method,gotime,pdesc,round((st_distance(point(lng, lat), point('.$lng.', '.$lat.'))*111195)/1000, 2) as distance from {table} where '.$where.' order by distance asc';
 
         $data = Dever::db('shop/info')->$method($sql, array(), $page);