...
|
...
|
@@ -164,7 +164,7 @@ exports.userAcquireStatus = (uid, couponIds) => { |
|
|
for (let i = 0; i < couponIds.length; i++) {
|
|
|
if (i === couponIds.length - 1) {
|
|
|
ids += crypto.decrypt('yoho9646abcdefgh', couponIds[i]);
|
|
|
}else {
|
|
|
} else {
|
|
|
ids += crypto.decrypt('yoho9646abcdefgh', couponIds[i]) + ',';
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -172,11 +172,12 @@ exports.userAcquireStatus = (uid, couponIds) => { |
|
|
return studentsApi.userAcquireStatus(uid, ids).
|
|
|
then(result => {
|
|
|
if (result.code === 200) {
|
|
|
_.forEach(result.data, (value) => {
|
|
|
_.forEach(result.data, (value) => {
|
|
|
let couponId = value.couponId.toString(),
|
|
|
cryptoId = crypto.encryption('yoho9646abcdefgh', couponId);
|
|
|
|
|
|
value.couponId = cryptoId;
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
return result;
|
|
|
});
|
...
|
...
|
|