dataLists(); } /** * @notes 返回其他状态列表 * @return \think\response\Json * @author cjhao * @date 2022/5/9 18:57 */ public function otherLists() { $otherLists = (new DiscountLogic())->otherLists(); return $this->success('', $otherLists); } /** * @notes 参与折扣活动 * @author cjhao * @date 2022/5/5 16:27 */ public function join() { $params = (new DiscountValidate())->post()->goCheck('join'); (new DiscountLogic)->join($params); return $this->success('设置成功'); } /** * @notes 退出折扣活动 * @return \think\response\Json * @author cjhao * @date 2022/5/5 17:14 */ public function quit() { $params = (new DiscountValidate())->post()->goCheck('join'); (new DiscountLogic)->quit($params); return $this->success('设置成功'); } /** * @notes 获取折扣商品详情 * @return \think\response\Json * @author cjhao * @date 2022/5/6 16:47 */ public function detail() { $params = (new DiscountValidate())->goCheck('detail'); $detail = (new DiscountLogic())->detail($params); return $this->success('', $detail); } /** * @notes 设置会员价 * @return \think\response\Json * @author cjhao * @date 2022/5/7 9:11 */ public function setDiscount() { $params = (new DiscountValidate())->post()->goCheck('setDiscount'); $result = (new DiscountLogic())->setDiscount($params); if (true === $result) { return $this->success('设置成功',[],1,1); } return $this->fail($result); } }