Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
7 years ago
Commit
fd2ec2bc53b6eeb63c805548970ba03063705d32
1 parent
463986fd
'地址加密逻辑去除'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
apps/home/models/address.js
utils/payment-process.js
apps/home/models/address.js
View file @
fd2ec2b
...
...
@@ -114,7 +114,6 @@ module.exports = class extends global.yoho.BaseModel {
if
(
selfAddress
.
data
)
{
/* 加密地址 ID */
_
.
forEach
(
selfAddress
.
data
,
(
value
)
=>
{
if
(
value
.
area
.
length
>
11
)
{
value
.
showArea
=
value
.
area
.
substr
(
0
,
5
)
+
'...'
+
value
.
area
.
substr
(
-
5
);
...
...
utils/payment-process.js
View file @
fd2ec2b
...
...
@@ -101,12 +101,9 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) {
result
.
name
=
cookieAddress
?
cookieAddress
.
consignee
:
addressData
.
consignee
;
result
.
phoneNum
=
cookieAddress
?
cookieAddress
.
mobile
:
addressData
.
mobile
;
result
.
addressId
=
cookieAddress
?
parseInt
(
crypto
.
decrypt
(
null
,
cookieAddress
.
address_id
),
10
)
:
addressData
.
address_id
;
result
.
addressId
=
addressData
.
address_id
;
result
.
addressInfo
=
cookieAddress
?
cookieAddress
.
address_info
:
[
addressData
.
area
,
addressData
.
address
].
join
(
' '
);
result
.
addressId
=
crypto
.
encryption
(
null
,
result
.
addressId
+
''
);
isSunfengSupport
=
isSupport
===
'N'
;
}
...
...
Please
register
or
login
to post a comment