/** * 修改注入服务信息 * * @param PwHookInjectDm $inject * @return PwError|true */ public function update($inject) { $error = $inject->beforeUpdate(); if ($error !== true) { return new PwError($error[0], $error[1]); } return $this->_load()->update($inject->getId(), $inject->getData()); }