Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
7db11e94fa7c760ed627a8b65d145c6e91ee1278
2 parents
32cdc10a
3da28edb
Merge branch 'hotfix/cartAdressSafe' into release/5.2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
library/LibModels/Wap/Home/OrderData.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
library/LibModels/Wap/Home/OrderData.php
View file @
7db11e9
...
...
@@ -174,17 +174,19 @@ class OrderData
/**
* 订单详情页——地址修改
* @param type $order_code
* @param type $address_id
* @return type
* @param $order_code
* @param $address_id
* @param $uid
* @return mixed
*/
public
static
function
updateDeliveryAddress
(
$order_code
,
$address_id
)
public
static
function
updateDeliveryAddress
(
$order_code
,
$address_id
,
$uid
)
{
// 构建必传参数
$param
=
Yohobuy
::
param
();
$param
[
'method'
]
=
'app.SpaceOrders.updateDeliveryAddress'
;
$param
[
'order_code'
]
=
$order_code
;
$param
[
'address_id'
]
=
$address_id
;
$param
[
'uid'
]
=
$uid
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
// 调用接口获得数据
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
7db11e9
...
...
@@ -1194,7 +1194,7 @@ class HomeController extends AbstractAction
//address_id解密
$address_id
=
urldecode
(
$address_id
);
$address_id
=
Encryption
::
decrypt
(
$address_id
);
$result
=
OrderData
::
updateDeliveryAddress
(
$order_code
,
$address_id
);
$result
=
OrderData
::
updateDeliveryAddress
(
$order_code
,
$address_id
,
$this
->
getUid
()
);
if
(
!
isset
(
$result
[
'code'
]))
{
break
;
}
...
...
Please
register
or
login
to post a comment