Authored by 郝肖肖

addres id urldecode

... ... @@ -480,6 +480,7 @@ class HomeController extends AbstractAction
$this->setTitle('编辑地址');
$this->setNavHeader('编辑地址', true, false);
$id = urlencode($id);
$data['id'] = $id;
// 获取特定地址的数据
$data['address'] = UserModel::getAddressDataById($uid, $id);
... ... @@ -508,6 +509,7 @@ class HomeController extends AbstractAction
$email = $this->post('email', '');
$id = $this->post('id', null);
if ($id) {
$id = urldecode($id);
$id = Encryption::decrypt($id);
}
$mobile = $this->post('mobile', '');
... ... @@ -535,6 +537,7 @@ class HomeController extends AbstractAction
$uid = $this->getUid(true);
$id = $this->post('id', '');
if ($id) {
$id = urldecode($id);
$id = Encryption::decrypt($id);
}
$result = UserModel::setDefaultAddress($uid, $id);
... ... @@ -559,6 +562,7 @@ class HomeController extends AbstractAction
$uid = $this->getUid(true);
$id = $this->post('id', '');
if ($id) {
$id = urldecode($id);
$id = Encryption::decrypt($id);
}
$result = UserModel::deleteAddress($uid, $id);
... ...