|
@@ -480,6 +480,7 @@ class HomeController extends AbstractAction |
|
@@ -480,6 +480,7 @@ class HomeController extends AbstractAction |
480
|
$this->setTitle('编辑地址');
|
480
|
$this->setTitle('编辑地址');
|
481
|
$this->setNavHeader('编辑地址', true, false);
|
481
|
$this->setNavHeader('编辑地址', true, false);
|
482
|
|
482
|
|
|
|
483
|
+ $id = urlencode($id);
|
483
|
$data['id'] = $id;
|
484
|
$data['id'] = $id;
|
484
|
// 获取特定地址的数据
|
485
|
// 获取特定地址的数据
|
485
|
$data['address'] = UserModel::getAddressDataById($uid, $id);
|
486
|
$data['address'] = UserModel::getAddressDataById($uid, $id);
|
|
@@ -508,6 +509,7 @@ class HomeController extends AbstractAction |
|
@@ -508,6 +509,7 @@ class HomeController extends AbstractAction |
508
|
$email = $this->post('email', '');
|
509
|
$email = $this->post('email', '');
|
509
|
$id = $this->post('id', null);
|
510
|
$id = $this->post('id', null);
|
510
|
if ($id) {
|
511
|
if ($id) {
|
|
|
512
|
+ $id = urldecode($id);
|
511
|
$id = Encryption::decrypt($id);
|
513
|
$id = Encryption::decrypt($id);
|
512
|
}
|
514
|
}
|
513
|
$mobile = $this->post('mobile', '');
|
515
|
$mobile = $this->post('mobile', '');
|
|
@@ -535,6 +537,7 @@ class HomeController extends AbstractAction |
|
@@ -535,6 +537,7 @@ class HomeController extends AbstractAction |
535
|
$uid = $this->getUid(true);
|
537
|
$uid = $this->getUid(true);
|
536
|
$id = $this->post('id', '');
|
538
|
$id = $this->post('id', '');
|
537
|
if ($id) {
|
539
|
if ($id) {
|
|
|
540
|
+ $id = urldecode($id);
|
538
|
$id = Encryption::decrypt($id);
|
541
|
$id = Encryption::decrypt($id);
|
539
|
}
|
542
|
}
|
540
|
$result = UserModel::setDefaultAddress($uid, $id);
|
543
|
$result = UserModel::setDefaultAddress($uid, $id);
|
|
@@ -559,6 +562,7 @@ class HomeController extends AbstractAction |
|
@@ -559,6 +562,7 @@ class HomeController extends AbstractAction |
559
|
$uid = $this->getUid(true);
|
562
|
$uid = $this->getUid(true);
|
560
|
$id = $this->post('id', '');
|
563
|
$id = $this->post('id', '');
|
561
|
if ($id) {
|
564
|
if ($id) {
|
|
|
565
|
+ $id = urldecode($id);
|
562
|
$id = Encryption::decrypt($id);
|
566
|
$id = Encryption::decrypt($id);
|
563
|
}
|
567
|
}
|
564
|
$result = UserModel::deleteAddress($uid, $id);
|
568
|
$result = UserModel::deleteAddress($uid, $id);
|