Authored by 周少峰

modify address

... ... @@ -32,7 +32,7 @@ class AddressData
public static function addressData($uid, $limit = 10)
{
$param = Yohobuy::param();
$param['method'] = 'app.address.get';
$param['method'] = 'app.address.gethidden';
$param['uid'] = $uid;
$param['limit'] = $limit;
$param['client_secret'] = Sign::getSign($param);
... ...
... ... @@ -30,7 +30,7 @@ class AddressModel
$zip_code = (isset($val['zip_code']) || !empty($val['zip_code'])) ? $val['zip_code'] : '';
$result[$key]['address'] = $val['area'] . $val['address'] . ' ' . $zip_code; //地区,地址,邮编
$phone = (isset($val['phone']) || !empty($val['phone'])) ? $val['phone'] : '';
$mobile = (isset($val['mobile']) || !empty($val['mobile'])) ? substr_replace($val['mobile'], '****', 3, 4) : '';
$mobile = (isset($val['mobile']) || !empty($val['mobile'])) ? $val['mobile'] : '';
$result[$key]['phone'] = $mobile . ' ' . $phone; //手机号码,固定电话
$result[$key]['isPreferred'] = $val['is_default'] == 'Y' ? 'true' : ''; //默认地址
}
... ...