...
|
...
|
@@ -18,7 +18,7 @@ exports.addFav = function(sid, bid) { |
|
|
|
|
|
if (sid) {
|
|
|
return $.post('/product/shop/togglecollect', {
|
|
|
isFavorite: 0,
|
|
|
isFavorite: 1,
|
|
|
shopId: sid
|
|
|
}).then(function(result) {
|
|
|
if (result.code === 200) {
|
...
|
...
|
@@ -54,7 +54,7 @@ exports.cancelFav = function(sid, bid) { |
|
|
|
|
|
if (sid) {
|
|
|
return $.post('/product/shop/togglecollect', {
|
|
|
isFavorite: 1,
|
|
|
isFavorite: 0,
|
|
|
shopId: sid
|
|
|
}).then(function(result) {
|
|
|
if (result.code === 200) {
|
...
|
...
|
|