Authored by wenjiekong

auto

@@ -164,7 +164,7 @@ exports.userAcquireStatus = (uid, couponIds) => { @@ -164,7 +164,7 @@ exports.userAcquireStatus = (uid, couponIds) => {
164 for (let i = 0; i < couponIds.length; i++) { 164 for (let i = 0; i < couponIds.length; i++) {
165 if (i === couponIds.length - 1) { 165 if (i === couponIds.length - 1) {
166 ids += crypto.decrypt('yoho9646abcdefgh', couponIds[i]); 166 ids += crypto.decrypt('yoho9646abcdefgh', couponIds[i]);
167 - }else { 167 + } else {
168 ids += crypto.decrypt('yoho9646abcdefgh', couponIds[i]) + ','; 168 ids += crypto.decrypt('yoho9646abcdefgh', couponIds[i]) + ',';
169 } 169 }
170 } 170 }
@@ -172,11 +172,12 @@ exports.userAcquireStatus = (uid, couponIds) => { @@ -172,11 +172,12 @@ exports.userAcquireStatus = (uid, couponIds) => {
172 return studentsApi.userAcquireStatus(uid, ids). 172 return studentsApi.userAcquireStatus(uid, ids).
173 then(result => { 173 then(result => {
174 if (result.code === 200) { 174 if (result.code === 200) {
175 - _.forEach(result.data, (value) => { 175 + _.forEach(result.data, (value) => {
176 let couponId = value.couponId.toString(), 176 let couponId = value.couponId.toString(),
177 cryptoId = crypto.encryption('yoho9646abcdefgh', couponId); 177 cryptoId = crypto.encryption('yoho9646abcdefgh', couponId);
  178 +
178 value.couponId = cryptoId; 179 value.couponId = cryptoId;
179 - }) 180 + });
180 } 181 }
181 return result; 182 return result;
182 }); 183 });