data($result); } /** * @notes 编辑 * @return \think\response\Json * @author likeadmin * @date 2023/08/28 13:37 */ public function save() { $params = (new PlatformValidate())->post()->goCheck('save'); $result = PlatformLogic::saveData($params); if (true === $result) { return $this->success('保存成功', [], 1, 1); } return $this->fail(PlatformLogic::getError()); } }