Commit 707e9181 authored by chenchuanwen's avatar chenchuanwen

bridgeReload

parent 53a29c8b
<?php <?php
define("APPLICATION_PATH", realpath(dirname(__FILE__) . '/../../../')); //指向public的上一级 define("APPLICATION_PATH", realpath(dirname(__FILE__) . '/../../../')); //指向public的上一级
require APPLICATION_PATH . '/scripts/crontab/baseCli.php'; //require APPLICATION_PATH . '/scripts/crontab/baseCli.php';
require APPLICATION_PATH . '/scripts/crontab/common.php';
error_reporting(E_ALL ^ E_NOTICE); error_reporting(E_ALL ^ E_NOTICE);
class runRedisPush class runRedisPush
{ {
...@@ -43,6 +42,7 @@ class runRedisPush ...@@ -43,6 +42,7 @@ class runRedisPush
} }
} }
public function callback($instance,$channelName,$message){ public function callback($instance,$channelName,$message){
require APPLICATION_PATH . '/scripts/crontab/common.php';
try{ try{
$message=json_decode($message,true); $message=json_decode($message,true);
$callInstance=$message['className']::getInstance(\Our\DbNameConst::masterDBConnectName); $callInstance=$message['className']::getInstance(\Our\DbNameConst::masterDBConnectName);
......
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