...
|
...
|
@@ -11,7 +11,6 @@ const api = global.yoho.API; |
|
|
const singleAPI = global.yoho.SingleAPI;
|
|
|
const helpers = global.yoho.helpers;
|
|
|
const _ = require('lodash');
|
|
|
const crypto = global.yoho.crypto;
|
|
|
const service = global.yoho.ServiceAPI;
|
|
|
const utils = '../../../utils';
|
|
|
const resourcesProcess = require(`${utils}/resources-process`);
|
...
|
...
|
@@ -254,13 +253,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
return api.all([this._detailInfo(uid), this._getCode(uid)]).then(result => {
|
|
|
if (result[0].data) {
|
|
|
result[0].data.gender = (result[0].data.gender === '1' ? '男' : '女');
|
|
|
result[0].data.qrcodeLink = helpers.urlFormat('/home/user/qrcode', {
|
|
|
token: _.get(result[0], 'data.uid', null) ?
|
|
|
crypto.encryption('yoho9646yoho9646', _.get(result[0], 'data.uid', null) + '') : '',
|
|
|
icon: _.get(result[0], 'data.head_ico', ''),
|
|
|
uname: _.get(result[0], 'data.nickname', ''),
|
|
|
vip: _.get(result[0], 'data.vip_info.cur_level')
|
|
|
});
|
|
|
result[0].data.qrcodeLink = helpers.urlFormat('/home/newQrcode');
|
|
|
result[0].data.trendWord = _.get(result[1].data, 'trendWord', false);
|
|
|
result[0].data.inviteCode = _.get(result[1].data, 'inviteCode', false);
|
|
|
}
|
...
|
...
|
|