diff --git a/service/Application/Home/View/Default/UserFavor/Goods.html b/service/Application/Home/View/Default/UserFavor/Goods.html
index 139df6572..9ea596601 100755
--- a/service/Application/Home/View/Default/UserFavor/Goods.html
+++ b/service/Application/Home/View/Default/UserFavor/Goods.html
@@ -46,7 +46,7 @@
-
+
|
|
-
+
|
diff --git a/service/Application/Service/GoodsService.class.php b/service/Application/Service/GoodsService.class.php
index 1aa03c044..c061b58d0 100755
--- a/service/Application/Service/GoodsService.class.php
+++ b/service/Application/Service/GoodsService.class.php
@@ -317,7 +317,7 @@ class GoodsService
[
'checked_type' => 'empty',
'key_name' => 'id',
- 'error_msg' => '删除数据id有误',
+ 'error_msg' => '商品id有误',
],
[
'checked_type' => 'empty',
@@ -333,7 +333,7 @@ class GoodsService
// 开始操作
$m = M('GoodsFavor');
- $data = ['id'=>intval($params['id']), 'user_id'=>$params['user']['id']];
+ $data = ['goods_id'=>intval($params['id']), 'user_id'=>$params['user']['id']];
$temp = $m->where($data)->find();
if(empty($temp))
{
diff --git a/service/Public/Home/Default/Js/Goods.js b/service/Public/Home/Default/Js/Goods.js
index fce4badfe..9ef21c3ad 100755
--- a/service/Public/Home/Default/Js/Goods.js
+++ b/service/Public/Home/Default/Js/Goods.js
@@ -205,7 +205,7 @@ $(function() {
type: 'post',
dataType: "json",
timeout: 10000,
- data: {"goods_id": $('.goods-detail').data('id')},
+ data: {"id": $('.goods-detail').data('id')},
success: function(result)
{
poptit_close();