Authored by 郭成尧

-foreach-return-false

@@ -81,7 +81,7 @@ exports.orderEnsure = (req, res, next) => { @@ -81,7 +81,7 @@ exports.orderEnsure = (req, res, next) => {
81 let orderAddress = _.get(order, 'address', []); 81 let orderAddress = _.get(order, 'address', []);
82 let addressList = _.get(address, 'data', []); 82 let addressList = _.get(address, 'data', []);
83 83
84 - orderAddress.length && addressList.forEach(address => { //eslint-disable-line 84 + orderAddress.length && _.forEach(addressList, address => { //eslint-disable-line
85 if (address.address_id === orderAddress.address_id) { 85 if (address.address_id === orderAddress.address_id) {
86 mobile = address.mobile; 86 mobile = address.mobile;
87 return false; 87 return false;