Authored by 郝肖肖

foreach key val

@@ -50,7 +50,7 @@ exports.fetchImHistory = (uid, endTime, pageSize, startTime) => { @@ -50,7 +50,7 @@ exports.fetchImHistory = (uid, endTime, pageSize, startTime) => {
50 encryptedUid: encryptedUid(uid) 50 encryptedUid: encryptedUid(uid)
51 }; 51 };
52 52
53 - _.forEach({startTime, endTime}, (key, val) => { 53 + _.forEach({startTime, endTime}, (val, key) => {
54 val && (params[key] = val); 54 val && (params[key] = val);
55 }); 55 });
56 56