Authored by yyq

logger error

... ... @@ -73,7 +73,9 @@ module.exports = class extends global.yoho.BaseModel {
this.userService.profile(uidObj),
this.cartService.goodsCount(uidObj),
this.userService.checkNoCertEmailUser(uidObj)
.catch(err => logger(`checkNoCertEmailUser${uid}err: ${err}`))
.catch(err => {
logger.error(`checkNoCertEmailUser${uid}err: ${err}`);
})
]).spread((userInfo, count, isTipCert) => {
let salt = uuid.v4().substr(0, 8);
let saltedUid = uid + salt;
... ...