dever 7 years ago
parent
commit
35b2a7da25
1 changed files with 6 additions and 3 deletions
  1. 6 3
      product/lib/Manage.php

+ 6 - 3
product/lib/Manage.php

@@ -24,9 +24,12 @@ class Manage
             $table['兑换码'] = $info['code'];
         }
 
-        $table['收货人姓名'] = $info['address_name'];
-        $table['收货人手机'] = $user['address_mobile'];
-        $table['收货人地址'] = $user['address_address'];
+        if (isset($info['address_name'])) {
+            $table['收货人姓名'] = $info['address_name'];
+            $table['收货人手机'] = $info['address_mobile'];
+            $table['收货人地址'] = $info['address_address'];
+        }
+        
 
 
         return Dever::table($table);