...
|
...
|
@@ -220,7 +220,7 @@ const delRecord = (uid, skn) => { |
|
|
* 会员等级
|
|
|
* @param params
|
|
|
*/
|
|
|
const getGradeGrade = (channel, uid) => {
|
|
|
const getGradeGrade = (uid, channel) => {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.vip',
|
|
|
uid: uid,
|
...
|
...
|
@@ -228,21 +228,19 @@ const getGradeGrade = (channel, uid) => { |
|
|
}, {code: 200});
|
|
|
};
|
|
|
|
|
|
const getGradeUser = (channel, uid) => {
|
|
|
if (uid) {
|
|
|
const getGradeUser = (uid, channel) => {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.profile',
|
|
|
uid: uid,
|
|
|
channel: channel || 1
|
|
|
}, {code: 200});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
const getGrade = (channel, uid) => {
|
|
|
|
|
|
const getGrade = (param) => {
|
|
|
if (param.uid) {
|
|
|
return api.all([
|
|
|
getGradeGrade(channel, uid),
|
|
|
getGradeUser(channel, uid)
|
|
|
getGradeGrade(param.uid, param.channel),
|
|
|
getGradeUser(param.uid, param.channel)
|
|
|
]).then((result) => {
|
|
|
|
|
|
let resu = {
|
...
|
...
|
@@ -330,6 +328,19 @@ const getGrade = (channel, uid) => { |
|
|
|
|
|
return resu;
|
|
|
});
|
|
|
} else {
|
|
|
return api.get('', {
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
let resu = {
|
|
|
vipGrade: []
|
|
|
};
|
|
|
|
|
|
return resu;
|
|
|
});
|
|
|
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
|