Authored by 周少峰

submit order , add new address

@@ -1096,6 +1096,10 @@ class CartModel @@ -1096,6 +1096,10 @@ class CartModel
1096 // 处理返回结果 1096 // 处理返回结果
1097 if (isset($address['code']) && $address['code'] == 200) { 1097 if (isset($address['code']) && $address['code'] == 200) {
1098 $result = $address; 1098 $result = $address;
  1099 + if ($result['data']['address_id']) {
  1100 + $result['data']['address_id'] = Encryption::encrypt($result['data']['address_id']);
  1101 + $result['data']['id'] = Encryption::encrypt($result['data']['id']);
  1102 + }
1099 } 1103 }
1100 } 1104 }
1101 1105
@@ -299,8 +299,10 @@ class IndexController extends WebAction @@ -299,8 +299,10 @@ class IndexController extends WebAction
299 if ($this->isAjax()) { 299 if ($this->isAjax()) {
300 $uid = $this->getUid(false); 300 $uid = $this->getUid(false);
301 $id = $this->post('id', null); //TODO 301 $id = $this->post('id', null); //TODO
  302 + if ($id) {
302 //解密 303 //解密
303 $id = intval(Encryption::decrypt($id)); 304 $id = intval(Encryption::decrypt($id));
  305 + }
304 $address = $this->post('address', ''); 306 $address = $this->post('address', '');
305 $areaCode = $this->post('areaCode', ''); 307 $areaCode = $this->post('areaCode', '');
306 $consignee = $this->post('consignee', ''); 308 $consignee = $this->post('consignee', '');