dataLists(new GroupActivityLists()); } /** * @notes 添加拼团活动 * @return \think\response\Json * @author likeadmin * @date 2025/03/13 10:31 */ public function add() { $params = (new GroupActivityValidate())->post()->goCheck('add'); $result = GroupActivityLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(GroupActivityLogic::getError()); } /** * @notes 编辑拼团活动 * @return \think\response\Json * @author likeadmin * @date 2025/03/13 10:31 */ public function edit() { $params = (new GroupActivityValidate())->post()->goCheck('edit'); $result = GroupActivityLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(GroupActivityLogic::getError()); } /** * @notes 删除拼团活动 * @return \think\response\Json * @author likeadmin * @date 2025/03/13 10:31 */ public function delete() { $params = (new GroupActivityValidate())->post()->goCheck('delete'); GroupActivityLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取拼团活动详情 * @return \think\response\Json * @author likeadmin * @date 2025/03/13 10:31 */ public function detail() { $params = (new GroupActivityValidate())->goCheck('detail'); $result = GroupActivityLogic::detail($params); return $this->data($result); } /** * 获取活动二维码 */ public function getQRCode() { $params = (new GroupActivityValidate())->post()->goCheck('detail'); return $this->success('',['qrcode'=>GroupActivityLogic::getQRCode($params, $this->request->domain())], 1, 1); } }