...
|
...
|
@@ -11,6 +11,7 @@ use Plugin\Pay\weixin\lib\WxPayUnifiedOrder; |
|
|
use Plugin\Pay\weixin\lib\WxPayApi;
|
|
|
use Plugin\Pay\weixin\lib\WxPayConfig;
|
|
|
use Plugin\UdpLog;
|
|
|
use Plugin\Encryption;
|
|
|
|
|
|
/**
|
|
|
* 个人中心相关的控制器
|
...
|
...
|
@@ -472,7 +473,6 @@ class HomeController extends AbstractAction |
|
|
'addressActionPage' => true,
|
|
|
'addressList' => UserModel::getAddressListData($uid)
|
|
|
);
|
|
|
|
|
|
if ($id !== null) { // 编辑地址
|
|
|
// 设置网站标题
|
|
|
$this->setTitle('编辑地址');
|
...
|
...
|
@@ -505,6 +505,9 @@ class HomeController extends AbstractAction |
|
|
$consignee = $this->post('consignee', '');
|
|
|
$email = $this->post('email', '');
|
|
|
$id = $this->post('id', null);
|
|
|
if ($id) {
|
|
|
$id = Encryption::decrypt($id);
|
|
|
}
|
|
|
$mobile = $this->post('mobile', '');
|
|
|
$zipCode = $this->post('zip_code', '');
|
|
|
|
...
|
...
|
@@ -528,7 +531,10 @@ class HomeController extends AbstractAction |
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
$uid = $this->getUid(true);
|
|
|
$id = $this->post('id', '');
|
|
|
$id = $this->post('id', '');// TODO
|
|
|
if ($id) {
|
|
|
$id = Encryption::decrypt($id);
|
|
|
}
|
|
|
$result = UserModel::setDefaultAddress($uid, $id);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -550,6 +556,9 @@ class HomeController extends AbstractAction |
|
|
if ($this->isAjax()) {
|
|
|
$uid = $this->getUid(true);
|
|
|
$id = $this->post('id', '');
|
|
|
if ($id) {
|
|
|
$id = Encryption::decrypt($id);
|
|
|
}
|
|
|
$result = UserModel::deleteAddress($uid, $id);
|
|
|
}
|
|
|
|
...
|
...
|
|