Your Name 2 年之前
父节点
当前提交
81b6c1ceff
共有 1 个文件被更改,包括 10 次插入7 次删除
  1. 10 7
      app/shop/lib/Sell.php

+ 10 - 7
app/shop/lib/Sell.php

@@ -1762,13 +1762,16 @@ class Sell
             $this->show_dz($info, $result);
         }
         $button = array();
-
-        $button[0]['btn'][] = array
-        (
-            'type' => 'edit',
-            'link' => Dever::url('project/database/update?project=shop&table=info&where_id='.$address['id'].'&status=1&col=contact,mobile,area,address,house_number', 'manage'),
-            'name' => '修改地址',
-        );
+        if (Dever::load('manage/auth')->checkFunc('menu_61.menu_218', 'editaddress', '修改地址')) {
+            if ($info['address_id']>0){
+                $button[0]['btn'][] = array
+                (
+                    'type' => 'edit',
+                    'link' => Dever::url('project/database/update?project=shop&table=info&where_id='.$info['address_id'].'&status=1&col=contact,mobile,area,address,house_number', 'manage'),
+                    'name' => '修改地址',
+                );
+            }
+        }
 
 
         $head = array