post()->goCheck(); $result = ServiceChargeLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ServiceChargeLogic::getError()); } /** * @notes 查看详情 * @return \think\response\Json * @author heshihu * @date 2022/2/22 10:15 */ public function detail() { $result = ServiceChargeLogic::detail(); return $this->data($result); } }