Authored by yyq

lint passport

... ... @@ -17,15 +17,15 @@ module.exports = class extends global.yoho.BaseModel {
*/
getResourceAsync(resourceCode) {
return this.indexApi.getResourceAsync(resourceCode)
.then(result => {
if (result.code === 200) {
return result.data;
} else {
.then(result => {
if (result.code === 200) {
return result.data;
} else {
return {};
}
})
.catch(() => {
return {};
}
})
.catch(() => {
return {};
});
});
}
};
... ...