chuweiqiang 1 năm trước cách đây
mục cha
commit
3e892f8e59
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/data/controller/api/auth/DemandLabor.php

+ 1 - 1
app/data/controller/api/auth/DemandLabor.php

@@ -205,7 +205,7 @@ class DemandLabor extends Auth
                 }
                 $d = DataCollectionLog::mk()->where('uuid',$this->uuid)->where('type',$type)->where('link_id',$data['id'])->where('cate',1)->select();
 //                return json($d);
-                if (DataCollectionLog::mk()->where('uuid',$this->uuid)->where('type',$type)->where('link_id',$data['id'])->delete()){
+                if (DataCollectionLog::mk()->where('uuid',$this->uuid)->where('type',$type)->where('link_id',$data['id'])->where('cate',1)->delete()){
                     $this->success('收藏成功');
                 }
                 $this->error('收藏失败');