Authored by htoooth

add

... ... @@ -101,7 +101,7 @@ exports.statusFav = function(sid, bid) {
return $.getJSON('/product/index/isfav', {
brandId: bid
}).then(function(result) {
if (result.code === 200) {
if (result.code === 200 && result.data) {
return $.Deferred().resolve().promise();//eslint-disable-line
} else {
return $.Deferred().reject().promise();//eslint-disable-line
... ...