This commit is contained in:
joyqi
2021-10-13 16:31:15 +08:00
parent 42e192340d
commit cac1c650a1
2 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -40,7 +40,6 @@ class Server
$this->setCapabilities();
$this->callbacks = $callbacks;
$this->setCallbacks();
$this->serve();
}
/**
@@ -298,7 +297,7 @@ class Server
/**
* 服务入口
*/
private function serve()
public function serve()
{
$message = new Message(file_get_contents('php://input') ?: '');
+4 -2
View File
@@ -1532,7 +1532,7 @@ class XmlRpc extends Contents implements ActionInterface, Hook
[
'isAdmin' => $this->user->pass('administrator', true),
'url' => $this->options->siteUrl,
'blogid' => '1',
'blogid' => 1,
'blogName' => $this->options->title,
'xmlrpc' => $this->options->xmlRpcUrl
]
@@ -1897,7 +1897,9 @@ EOF;
}
/** 直接把初始化放到这里 */
new Server($api);
$server = new Server($api);
$server->setHook($this);
$server->serve();
}
}