dever 3 years ago
parent
commit
89b679dbaf
3 changed files with 7 additions and 5 deletions
  1. 1 1
      app/goods/lib/Sku.php
  2. 3 3
      app/shop/database/info.php
  3. 3 1
      app/shop/lib/Info.php

+ 1 - 1
app/goods/lib/Sku.php

@@ -405,7 +405,7 @@ class Sku
         }
 
         if ($option_attr) {
-            print_r($option_attr);die;
+            //print_r($option_attr);die;
             foreach ($option_attr as $k => $v) {
 
                 $option_body .= '<tr data-row="' .($k+1). '">';

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

@@ -318,7 +318,7 @@ return array
             'desc'      => '营业时间',
             'match'     => 'is_string',
             'update'    => 'text',
-            'show'      => 'method=1,3',
+            //'show'      => 'method=1,3',
         ),
 
         'gotime'      => array
@@ -328,8 +328,8 @@ return array
             'default'   => '',
             'desc'      => '外送时间',
             'match'     => 'is_string',
-            'update'    => 'text',
-            'show'      => 'method=2,3',
+            //'update'    => 'text',
+            //'show'      => 'method=2,3',
         ),
 
         'hr3'       => array

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

@@ -90,6 +90,8 @@ class Info
             }
         }
 
+        $data['gotime'] = $data['worktime'];
+
         return $data;
     }
 
@@ -108,7 +110,7 @@ class Info
 
         $county = Dever::db('area/county')->find($city);
         if ($county) {
-            $city = $county['id'];
+            $city = $county['city_id'];
         }
         if ($type == 1 && $city) {
             $where .= ' and city = ' . $city;