Authored by zhangxiaoru

空uid 空值

... ... @@ -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) => {
if (uid) {
return api.get('', {
method: 'app.invitecode.my',
uid: uid
}, {
code: 200
});
} else {
return {};
}
};
const _getTrendPop = (contentCode) => {
... ...