Browse Source

Merge branch 'master' of ssh://git.dever.cc:10022/dever-product/churen

rabin 2 years ago
parent
commit
45d0e2f651
1 changed files with 3 additions and 4 deletions
  1. 3 4
      app/shop/lib/Sell.php

+ 3 - 4
app/shop/lib/Sell.php

@@ -1751,7 +1751,7 @@ class Sell
         $button = array();
         if (Dever::load('manage/auth')->checkFunc('menu_61.menu_218', 'editaddress', '修改地址')) {
             if ($info['address_id']>0){
-                $button[0]['btn'][] = array
+                $button[] = array
                 (
                     'type' => 'edit',
                     'link' => Dever::url('project/database/update?project=passport&table=address&where_id='.$info['address_id'].'&status=1&col=contact,mobile,area,address,house_number', 'manage'),
@@ -1764,10 +1764,9 @@ class Sell
         $head = array
         (
             'name' => '基本信息',
-            'btn' => array(),
+            'btn' => $button,
         );
-        $foot = $button;
-        $html = Dever::show($head, $result,$foot);
+        $html = Dever::show($head, $result);
 
         return $html;
     }