1
This commit is contained in:
parent
609fdf8230
commit
54de3d78b5
@ -8,6 +8,7 @@ class BaseController {
|
||||
private $marketDbConn = null;
|
||||
private $relationDbConn = null;
|
||||
private $timeOffset = 0;
|
||||
private $serviceHash = array();
|
||||
|
||||
function __construct()
|
||||
{
|
||||
@ -235,4 +236,15 @@ class BaseController {
|
||||
return $channel == "0000";
|
||||
}
|
||||
|
||||
public function callService($serviceName, $funcName)
|
||||
{
|
||||
if (!array_key_exists($serviceName, $this->serviceHash)) {
|
||||
require_once('services/' . $serviceName . '.php');
|
||||
$this->serviceHash[$serviceName] = $this->_getNowTime();
|
||||
}
|
||||
$method = new ReflectionMethod($serviceName . 'Service', $funcName);
|
||||
$ret = $method->invoke(null);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
11
webapp/services/MsgQueueService.php
Normal file
11
webapp/services/MsgQueueService.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace services;
|
||||
|
||||
class MsgQueueService extends BaseService {
|
||||
|
||||
public static function postMsg() {
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user