Authored by 王水玲

星潮教室bug 修改

... ... @@ -157,7 +157,7 @@ exports.setFavorite = (req, res, next) => {
let urlEncode = '';
starModel.setFavorite(params, uid).then((result) => {
if (result.code === 401) {
if (result.code === 400) {
if (!isApp) {
result.data = helpers.urlFormat('/signin.html', {
refer: req.get('Referer') || url
... ...
... ... @@ -22,7 +22,6 @@ $(document).on('click', '.collection', function() {
type = 'fav';
}
$.ajax({
type: 'POST',
url: '/guang/star/setFavorite',
... ... @@ -43,7 +42,7 @@ $(document).on('click', '.collection', function() {
}
if (code === 401) {
if (code === 400) {
if ($('#collocation-link').length <= 0) {
$('body').append('<a href=\'' + data.data + '\' style="display:none;" id="collocation-link">' +
'<span class="collocation-link"></span></a>');
... ...