Authored by 郝肖肖

'地址加密逻辑去除'

@@ -114,7 +114,6 @@ module.exports = class extends global.yoho.BaseModel { @@ -114,7 +114,6 @@ module.exports = class extends global.yoho.BaseModel {
114 114
115 if (selfAddress.data) { 115 if (selfAddress.data) {
116 116
117 - /* 加密地址 ID */  
118 _.forEach(selfAddress.data, (value) => { 117 _.forEach(selfAddress.data, (value) => {
119 if (value.area.length > 11) { 118 if (value.area.length > 11) {
120 value.showArea = value.area.substr(0, 5) + '...' + value.area.substr(-5); 119 value.showArea = value.area.substr(0, 5) + '...' + value.area.substr(-5);
@@ -101,12 +101,9 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { @@ -101,12 +101,9 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) {
101 101
102 result.name = cookieAddress ? cookieAddress.consignee : addressData.consignee; 102 result.name = cookieAddress ? cookieAddress.consignee : addressData.consignee;
103 result.phoneNum = cookieAddress ? cookieAddress.mobile : addressData.mobile; 103 result.phoneNum = cookieAddress ? cookieAddress.mobile : addressData.mobile;
104 - result.addressId = cookieAddress ?  
105 - parseInt(crypto.decrypt(null, cookieAddress.address_id), 10) : addressData.address_id; 104 + result.addressId = addressData.address_id;
106 result.addressInfo = cookieAddress ? 105 result.addressInfo = cookieAddress ?
107 cookieAddress.address_info : [addressData.area, addressData.address].join(' '); 106 cookieAddress.address_info : [addressData.area, addressData.address].join(' ');
108 -  
109 - result.addressId = crypto.encryption(null, result.addressId + '');  
110 isSunfengSupport = isSupport === 'N'; 107 isSunfengSupport = isSupport === 'N';
111 } 108 }
112 109