Authored by 毕凯

Merge branch 'hotfix/expandNew2' into 'master'

空uid 空值



See merge request !802
... ... @@ -25,7 +25,8 @@ module.exports = class extends global.yoho.BaseModel {
result.data.isApp = isApp;
result.data.copyUrl = result.data.shareUrl.replace(/"/g, '"').replace(/=/g, ':');
result.data.copyUrl = result.data.shareUrl ?
result.data.shareUrl.replace(/"/g, '"').replace(/=/g, ':') : '';
return result.data;
} else {
... ...
... ... @@ -115,12 +115,16 @@ const _getRes = () => {
// 潮流口令
const _getCode = (uid) => {
return api.get('', {
method: 'app.invitecode.my',
uid: uid
}, {
code: 200
});
if (uid) {
return api.get('', {
method: 'app.invitecode.my',
uid: uid
}, {
code: 200
});
} else {
return Promise.resolve({});
}
};
const _getTrendPop = (contentCode) => {
... ...