Authored by 周少峰

submit order , add new address

... ... @@ -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']);
}
}
}
... ...
... ... @@ -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', '');
... ...