예제 #1
0
function packCreateMsg($taskType, $data)
{
    $taskId = rand(1, 1000);
    $result = packMsg($taskType, $taskId, $data);
    return $result;
}
예제 #2
0
파일: gateway.php 프로젝트: eastlhu/fooking
function success($type, $data)
{
    $body = packMsg($type, $data);
    if (FOOKING) {
        header("Content-Length: " . strlen($body));
    }
    echo $body;
}