Showing
1 changed file
with
1 additions
and
1 deletions
@@ -101,7 +101,7 @@ exports.statusFav = function(sid, bid) { | @@ -101,7 +101,7 @@ exports.statusFav = function(sid, bid) { | ||
101 | return $.getJSON('/product/index/isfav', { | 101 | return $.getJSON('/product/index/isfav', { |
102 | brandId: bid | 102 | brandId: bid |
103 | }).then(function(result) { | 103 | }).then(function(result) { |
104 | - if (result.code === 200) { | 104 | + if (result.code === 200 && result.data) { |
105 | return $.Deferred().resolve().promise();//eslint-disable-line | 105 | return $.Deferred().resolve().promise();//eslint-disable-line |
106 | } else { | 106 | } else { |
107 | return $.Deferred().reject().promise();//eslint-disable-line | 107 | return $.Deferred().reject().promise();//eslint-disable-line |
-
Please register or login to post a comment