コード例 #1
0
ファイル: interface.php プロジェクト: shitfSign/ducter-web
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;
}