Commit 5910ebe6 by TingSong-Syu

upgrade x2ts-rpc

parent db06b8d9
......@@ -10,7 +10,7 @@
}
],
"require": {
"x2ts/x2ts-rpc": "^2.1.1"
"x2ts/x2ts-rpc": "^2.1.2"
},
"autoload": {
"psr-4": {
......
......@@ -14,7 +14,6 @@ use neoteched\rpc\pay_center\Order;
use neoteched\rpc\pay_center\Product;
use neoteched\rpc\pay_center\Purpose;
use x2ts\ComponentFactory as X;
use x2ts\rpc\RPCException;
use x2ts\rpc\RPCWrapper;
/**
......@@ -54,10 +53,6 @@ use x2ts\rpc\RPCWrapper;
class PayCenter extends RPCWrapper {
public function reloadUserBought() {
X::logger()->trace("Package: {$this->package}");
$rpc = $this->findRpcComponentId();
if ($rpc === false) {
throw new RPCException('The rpc component cannot be found in the component configuration');
}
return X::$rpc($this->package)->callVoid('reloadUserBought');
self::rpc($this->package)->callVoid('reloadUserBought');
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment