Authored by 周少峰

Merge branch 'release/5.3' into gray

... ... @@ -9,8 +9,12 @@
const _ = require('lodash');
const Promise = require('bluebird');
const co = Promise.coroutine;
const fp = require('lodash/fp');
const helpers = global.yoho.helpers;
// NOTE: 这里修改了图片质量的参数
helpers.image = _.flow(helpers.image, fp.replace(/\/quality\/\d*$/, '/quality/90'));
const passportModel = require('../models/passport');
const index = (req, res, next) => {
... ... @@ -39,7 +43,7 @@ const index = (req, res, next) => {
// 个人信息调用失败返回
if (profile) {
// userInfo.result = 1;
userInfo.result = 1;
console.log(profile);
let curYearCost = parseInt(_.get(profile, 'vip_info.curYearCost', 0)); //eslint-disable-line
... ... @@ -49,7 +53,7 @@ const index = (req, res, next) => {
// 个人资料
profileName: _.get(profile, 'profile_name', ''),
headIco: !_.get(profile, 'head_ico') ? helpers.image(_.get(profile, 'head_ico'), 63, 63) : '',
headIco: _.get(profile, 'head_ico') ? helpers.image(_.get(profile, 'head_ico'), 63, 63) : '',
curTitle: _.get(profile, 'vip_info.title', 0),
// VIP信息
... ...