Authored by 郝肖肖

'地址加密逻辑去除'

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