Exemple #1
0
C(\hellaEngine\Configure\Constants::PHP_PROFILE, true);
C(\hellaEngine\Configure\Constants::DEBUG_DB, true);
C(\hellaEngine\Configure\Constants::DUMP_ENABLE, true);
echo ">>>>>>>>>>>>>>>>>>>>>> begin debug info >>>>>>>>>>>>>>>>>>>>>><br>";
// 模拟数据提交
$_POST["data"] = $jsonMsg;
$output = $gateway->processMessage($jsonMsg);
if (!isset($_GET['backurl'])) {
    echo "<br><<<<<<<<<<<<<<<<<<<<<< end debug info   <<<<<<<<<<<<<<<<<<<<<<<br><br>";
    echo ">>>>>>>>>>>>>>>>>>>>>> function return >>>>>>>>>>>>>>>>>>>>>><br>";
    // $output = json_decode ( gzuncompress ( base64_decode ( $data ) ) );
    $returnmessages = \hellaEngine\Supports\Common\Util\CommonUtilMessage::decodeMessage($output);
    // _dump ( $returnmessages );
    foreach ($returnmessages as $value) {
        // _dump ( $value );
        $command = \hellaEngine\Supports\Common\Util\CommonUtilMessage::Message_getCommand($value);
        // _dump ( $command );
        util::var_dump($command, false, -1);
    }
    // _dump ( $_SERVER );
    echo "<<<<<<<<<<<<<<<<<<<<<< function return <<<<<<<<<<<<<<<<<<<<<<<br>";
    // echo (">>>>return messagelenSRC:" . strlen ( $uncompressString ) . "<br>");
    echo ">>>>return messagelenQQ:" . strlen($output) . "<br>";
    echo ">>>>return message:" . $output . "<br>";
    if (C(configure_constants::DEBUG_DB)) {
        echo ">>>>>>>>>>>>>>>>>>>>>>>dbinfo>>>>>>>>>>>>>>>>>>>>>>><br>";
        if (isset($GLOBALS[configure_constants::DEBUG_DB_DIRTY_KEY])) {
            $debugdbarray = $GLOBALS[configure_constants::DEBUG_DB_DIRTY_KEY];
            if (!is_null($debugdbarray)) {
                // _dump ( $debugdbarray );
                util::var_dump($debugdbarray, false, -1);
Exemple #2
0
 private function __processMessage($messageData)
 {
     $timeHelper = new CommonUtilRuntime();
     $timeHelper->start();
     $command = CommonUtilMessage::Message_getCommand($messageData);
     if (empty($command)) {
         return;
     }
     $processData = ProcessData::create_with_array($command);
     $ret = $this->process($processData);
     $timeHelper->stop();
     CommonUtilMessage::pushS2CMessageBody($ret);
     $this->call_commands[$processData->get_command()] = $timeHelper->spent();
 }