Showing
1 changed file
with
4 additions
and
2 deletions
@@ -362,12 +362,14 @@ const favoriteBrand = (req, res, next) => { | @@ -362,12 +362,14 @@ const favoriteBrand = (req, res, next) => { | ||
362 | } | 362 | } |
363 | }); | 363 | }); |
364 | 364 | ||
365 | - refer = refererSplit[0] + '?' + shopId; | 365 | + if (shopId) { |
366 | + refer = refererSplit[0] + '?' + shopId; | ||
367 | + } | ||
366 | } | 368 | } |
367 | 369 | ||
368 | let url = helpers.urlFormat('/signin.html') + '?refer=' + refer; | 370 | let url = helpers.urlFormat('/signin.html') + '?refer=' + refer; |
369 | 371 | ||
370 | - if (appVersion) { | 372 | + if (appVersion && appVersion !== 'false') { |
371 | uid = req.query.uid ? crypto.decrypt('', req.query.uid) : req.cookies.appUid; | 373 | uid = req.query.uid ? crypto.decrypt('', req.query.uid) : req.cookies.appUid; |
372 | 374 | ||
373 | if (!uid || uid === 'undefined') { | 375 | if (!uid || uid === 'undefined') { |
-
Please register or login to post a comment