dataLists((new GoodsCollectLists())); } /** * @notes 操作收藏 * @return \think\response\Json * @author cjhao * @date 2021/8/18 9:40 */ public function handleCollectgoods() { $params = $this->request->post(); $result = (new CollectLogic)->handleCollectGoods($params,$this->userId); if ($result === true) { $tips = $params['is_collect'] ? '收藏成功' : '取消成功'; return $this->success($tips,[]); } return $this->fail($result); } }