Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
80811254473013ad599061590c8d09458fde2289
1 parent
0b6f6803
modify address
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
library/LibModels/Web/Home/AddressData.php
yohobuy/www.yohobuy.com/application/models/Home/Address.php
library/LibModels/Web/Home/AddressData.php
View file @
8081125
...
...
@@ -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.get
hidden
'
;
$param
[
'uid'
]
=
$uid
;
$param
[
'limit'
]
=
$limit
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
...
...
yohobuy/www.yohobuy.com/application/models/Home/Address.php
View file @
8081125
...
...
@@ -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'
:
''
;
//默认地址
}
...
...
Please
register
or
login
to post a comment