...
|
...
|
@@ -15,22 +15,37 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
getGradeGrade(uid, channel) {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.vip',
|
|
|
uid: uid,
|
|
|
channel: channel || 1
|
|
|
}, {
|
|
|
code: 200
|
|
|
|
|
|
let options = {
|
|
|
data: {
|
|
|
method: 'app.passport.vip',
|
|
|
uid: uid,
|
|
|
channel: channel || 1
|
|
|
},
|
|
|
param: {
|
|
|
code: 200
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return this.get(options).then(result => {
|
|
|
return result;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
getGradeUser(uid, channel) {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.profile',
|
|
|
uid: uid,
|
|
|
channel: channel || 1
|
|
|
}, {
|
|
|
code: 200
|
|
|
let options = {
|
|
|
data: {
|
|
|
method: 'app.passport.profile',
|
|
|
uid: uid,
|
|
|
channel: channel || 1
|
|
|
},
|
|
|
param: {
|
|
|
code: 200
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return this.get(options).then(result => {
|
|
|
return result;
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|