...
|
...
|
@@ -190,6 +190,12 @@ exports.getFilterData = (params) => { |
|
|
};
|
|
|
|
|
|
const getUserProfile = (uid) => {
|
|
|
if (!uid) {
|
|
|
return Promise.resolve({
|
|
|
code: 200,
|
|
|
data: {}
|
|
|
});
|
|
|
}
|
|
|
return api.get('', sign.apiSign({
|
|
|
method: 'app.passport.profile',
|
|
|
uid: uid
|
...
|
...
|
@@ -211,7 +217,7 @@ exports.getSearchData = (params, uid) => { |
|
|
}),
|
|
|
getUserProfile(uid).then((result) => {
|
|
|
if (result && result.code === 200) {
|
|
|
return camelCase(result.data.vip_info);
|
|
|
return result.data.vip_info ? camelCase(result.data.vip_info) : {};
|
|
|
} else {
|
|
|
logger.error('获取用户信息返回 code 不是 200');
|
|
|
return {};
|
...
|
...
|
|