dataLists(); } /** * @notes 设置佣金 * @return \think\response\Json * @author Tab * @date 2021/7/23 16:43 */ public function set() { $params = (new DistributionGoodsValidate())->post()->goCheck('set'); $result = DistributionGoodsLogic::set($params); if($result) { return $this->success('设置成功'); } return $this->fail(DistributionGoodsLogic::getError()); } /** * @notes 参与/不参与分销 * @return \think\response\Json * @author Tab * @date 2021/7/23 18:01 */ public function join() { $params = (new DistributionGoodsValidate())->post()->goCheck('join'); $result = DistributionGoodsLogic::join($params); if($result) { return $this->success('设置成功', [], 1, 1); } return $this->fail(DistributionGoodsLogic::getError()); } /** * @notes 查看分销商品详情 * @return \think\response\Json * @author Tab * @date 2021/7/23 18:16 */ public function detail() { $params = (new DistributionGoodsValidate())->goCheck('detail'); $result = DistributionGoodsLogic::detail($params); return $this->data($result); } }