mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-08 10:51:14 +00:00
Update index.php
This commit is contained in:
parent
4e237fc892
commit
31c16ef881
|
@ -9,7 +9,7 @@
|
||||||
* Updated at: 2024-06-20
|
* Updated at: 2024-06-20
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("PHP_HTTPPROXY_VERSION", "0.1.5.16");
|
define("PHP_HTTPPROXY_VERSION", "0.1.5.17");
|
||||||
define("DEFAULT_SOCKET_TIMEOUT", 1);
|
define("DEFAULT_SOCKET_TIMEOUT", 1);
|
||||||
define("STATEFUL_SOCKET_TIMEOUT", 30);
|
define("STATEFUL_SOCKET_TIMEOUT", 30);
|
||||||
define("MAX_EXECUTION_TIME", 0);
|
define("MAX_EXECUTION_TIME", 0);
|
||||||
|
@ -373,7 +373,7 @@ function relay_get_geolocation() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function relay_call_user_func($params) {
|
function relay_invoke_method($params) {
|
||||||
$callback = $params['callback'];
|
$callback = $params['callback'];
|
||||||
$args = (is_array($params['args']) ? $params['args'] : array());
|
$args = (is_array($params['args']) ? $params['args'] : array());
|
||||||
|
|
||||||
|
@ -478,8 +478,8 @@ if ($context['jsonrpc'] == "2.0") {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "relay_call_user_func":
|
case "relay_invoke_method":
|
||||||
$result = relay_call_user_func($context['params']);
|
$result = relay_invoke_method($context['params']);
|
||||||
if ($result['success']) {
|
if ($result['success']) {
|
||||||
echo jsonrpc2_result_encode($result['result'], $context['id']);
|
echo jsonrpc2_result_encode($result['result'], $context['id']);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user