Fix: inherited policy ID didn't pass through second layer in Folder / version verification in Ping router
This commit is contained in:
parent
b6efca1878
commit
5802161102
2 changed files with 7 additions and 3 deletions
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit e0da8f48856e3fb6e3e9cc920a32390ca132935e
|
||||
Subproject commit 8a94d68f17c170a1055e2d57c2a2a55d18868a9e
|
|
@ -207,8 +207,12 @@ func (service *SlavePingService) Test() serializer.Response {
|
|||
return serializer.ParamErr("从机无法向主机发送回调请求,请检查主机端 参数设置 - 站点信息 - 站点URL设置,并确保从机可以连接到此地址,"+err.Error(), nil)
|
||||
}
|
||||
|
||||
if res.Data.(string) != conf.BackendVersion {
|
||||
return serializer.ParamErr("Cloudreve版本不一致,主机:"+res.Data.(string)+",从机:"+conf.BackendVersion, nil)
|
||||
version := conf.BackendVersion
|
||||
if conf.IsPro == "true" {
|
||||
version += "-pro"
|
||||
}
|
||||
if res.Data.(string) != version {
|
||||
return serializer.ParamErr("Cloudreve版本不一致,主机:"+res.Data.(string)+",从机:"+version, nil)
|
||||
}
|
||||
|
||||
return serializer.Response{}
|
||||
|
|
Loading…
Add table
Reference in a new issue