public function indexAction() { $id = Comm\Arg::post('id', FILTER_VALIDATE_INT); $content = Comm\Arg::post('content'); $result = Model\Theme\Resource::update($id, $content); Comm\Response::json(100000, '保存成功', ['result' => $result], false); }