This commit is contained in:
cdle
2023-06-30 22:32:08 +08:00
parent 6f5d178740
commit 40b1ae10e5
8 changed files with 24 additions and 18 deletions
+4 -1
View File
@@ -24,7 +24,10 @@ func CheckPluginAddress(address string) error {
}
data, _ := httplib.Get(address).Bytes()
rr := RequestPluginResult{}
json.Unmarshal(data, &rr)
err := json.Unmarshal(data, &rr)
if IsCdle {
console.Error(err, address, string(data))
}
if !rr.Success {
return errors.New("无效的地址")
}