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
3aaa305606de020ab62e9e1de99ca935ab09f60c
1 parent
900c574f
submit order , add new address
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
yohobuy/www.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
View file @
3aaa305
...
...
@@ -1096,6 +1096,10 @@ class CartModel
// 处理返回结果
if
(
isset
(
$address
[
'code'
])
&&
$address
[
'code'
]
==
200
)
{
$result
=
$address
;
if
(
$result
[
'data'
][
'address_id'
])
{
$result
[
'data'
][
'address_id'
]
=
Encryption
::
encrypt
(
$result
[
'data'
][
'address_id'
]);
$result
[
'data'
][
'id'
]
=
Encryption
::
encrypt
(
$result
[
'data'
][
'id'
]);
}
}
}
...
...
yohobuy/www.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
3aaa305
...
...
@@ -299,8 +299,10 @@ class IndexController extends WebAction
if
(
$this
->
isAjax
())
{
$uid
=
$this
->
getUid
(
false
);
$id
=
$this
->
post
(
'id'
,
null
);
//TODO
//解密
$id
=
intval
(
Encryption
::
decrypt
(
$id
));
if
(
$id
)
{
//解密
$id
=
intval
(
Encryption
::
decrypt
(
$id
));
}
$address
=
$this
->
post
(
'address'
,
''
);
$areaCode
=
$this
->
post
(
'areaCode'
,
''
);
$consignee
=
$this
->
post
(
'consignee'
,
''
);
...
...
Please
register
or
login
to post a comment