dataLists(); } /** * @notes 添加回复(关注/关键词/默认) * @author Tab * @date 2021/7/29 15:55 */ public function add() { $params = (new OfficialAccountReplyValidate())->post()->goCheck('add'); $result = OfficialAccountReplyLogic::add($params); if ($result) { return $this->success('新增回复成功', [], 1, 1); } return $this->fail(OfficialAccountReplyLogic::getError()); } /** * @notes 查看回复详情 * @return \think\response\Json * @author Tab * @date 2021/7/29 16:53 */ public function detail() { $params = (new OfficialAccountReplyValidate())->goCheck('detail'); $result = OfficialAccountReplyLogic::detail($params); return $this->data($result); } /** * @notes 编辑回复(关注/关键词/默认) * @return \think\response\Json * @author Tab * @date 2021/7/29 17:27 */ public function edit() { $params = (new OfficialAccountReplyValidate())->post()->goCheck('edit'); $result = OfficialAccountReplyLogic::edit($params); if ($result) { return $this->success('编辑回复成功', [], 1, 1); } return $this->fail(OfficialAccountReplyLogic::getError()); } /** * @notes 删除回复(关注/关键词/默认) * @return \think\response\Json * @author Tab * @date 2021/7/29 17:44 */ public function delete() { $params = (new OfficialAccountReplyValidate())->post()->goCheck('delete'); OfficialAccountReplyLogic::delete($params); return $this->success('删除回复成功', [], 1, 1); } /** * @notes 更新排序 * @return \think\response\Json * @author Tab * @date 2021/7/29 18:11 */ public function sort() { $params = (new OfficialAccountReplyValidate())->post()->goCheck('sort'); OfficialAccountReplyLogic::sort($params); return $this->success('修改成功'); } /** * @notes 更新状态 * @author Tab * @date 2021/9/9 18:27 */ public function status() { $params = (new OfficialAccountReplyValidate())->post()->goCheck('status'); OfficialAccountReplyLogic::status($params); return $this->success('修改成功', [], 1, 1); } /** * @notes 微信公众号回调 * @author Tab * @date 2021/7/30 11:58 */ public function index() { OfficialAccountReplyLogic::index(); } }