/** * 重启进程 * */ public function restartprocess() { $nowTime = time(); $dataArr = "nohup /usr/local/webserver/php/bin/php " . CRONTAB_PATH . "/process.php >" . LOG_PATH . '/restartprocess.log'; Com_Feed::getInstance()->publish_data('sendGmExc', $dataArr, 'gm-kfaofawnbvhy@%', $nowTime, md5('gm-kfaofawnbvhy@%' . $nowTime)); echo 1; }
/** * 多玩平台推送数据 * @param unknown_type $account * @param unknown_type $type * @return Ambigous <mixed, Ambigous> */ public static function send_message($account, $op, $nowTime = 0) { if (empty($nowTime)) { $nowTime = time(); } $ip = Com_System::get_client_ip(); //file_put_contents(PROJECT_ROOT.'/uuzudo.log',var_export(array('sendMessage',$account,$op,$nowTime,$ip),true)."\n",FILE_APPEND); Com_Feed::getInstance()->publish_data('sendMessage', $account, $op, $nowTime * 1000, $ip); }