diff --git a/application/index/controller/Buy.php b/application/index/controller/Buy.php index 44140c364..0f8723588 100755 --- a/application/index/controller/Buy.php +++ b/application/index/controller/Buy.php @@ -63,7 +63,8 @@ class Buy extends Common if(isset($ret['code']) && $ret['code'] == 0) { // 用户地址 - $this->assign('user_address_list', UserService::UserAddressList(['user'=>$this->user])['data']); + $address = UserService::UserAddressList(['user'=>$this->user]); + $this->assign('user_address_list', $address['data']); // 支付方式 $this->assign('payment_list', PaymentService::BuyPaymentList(['is_enable'=>1, 'is_open_user'=>1])); diff --git a/application/index/view/default/buy/index.html b/application/index/view/default/buy/index.html index e083e30db..f5bc33bc9 100755 --- a/application/index/view/default/buy/index.html +++ b/application/index/view/default/buy/index.html @@ -26,7 +26,7 @@ {{if !empty($user_address_list)}}