Skip to content

Commit

Permalink
修复删除不成功的的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
blueoo committed Feb 7, 2022
1 parent 4e826b9 commit db1cb1f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/alibaba/nacos/request/naming/NamingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ protected function getParameterAndHeader()
}
}

// if ($this instanceof RegisterInstanceNaming) {
// $parameterList["ephemeral"] = NamingConfig::getEphemeral();
// }
//修改为所有接口都传这个参数,不传这个参数,删除不会成功的
$parameterList["ephemeral"] = NamingConfig::getEphemeral();
if ($this instanceof RegisterInstanceNaming || $this instanceof DeleteInstanceNaming ||
$this instanceof UpdateInstanceNaming || $this instanceof ListInstanceNaming ||
$this instanceof BeatInstanceNaming) {
$parameterList["ephemeral"] = NamingConfig::getEphemeral();
}

if (NacosConfig::getIsDebug()) {
LogUtil::info(strtr("parameterList: {parameterList}, headers: {headers}", [
Expand Down

0 comments on commit db1cb1f

Please sign in to comment.