⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 win_count.php

📁 六和投注系统
💻 PHP
字号:
<?php


function win_count( $num_sign, $drop_content, $drop_type, $drop_money, $drop_rate, $drop_details, $dates, $cuts )
{
    $win = 0;
    $rok = rcheck( $num_sign, $drop_content, $drop_type, $drop_details, $dates );
    if ( $num_sign != 5 )
    {
        if ( $rok == 1 )
        {
            $win += $drop_rate * $drop_money - $drop_money + $cuts;
        }
        else if ( $rok == 0 )
        {
            $win += 0 - ( $drop_money - $cuts );
        }
        else if ( $rok == 2 )
        {
            $win += $drop_money;
        }
    }
    else
    {
        $znum = among_num( $drop_content, $drop_details );
        if ( $drop_content == "三全中" || $drop_content == "二全中" || $drop_content == "特串" )
        {
            if ( $rok == 0 )
            {
                $win += 0 - ( $drop_money - $cuts );
            }
            else
            {
                $win += $drop_money / $znum * $rok * $drop_rate + $cuts;
            }
        }
        else if ( $drop_content == "三中二" || $drop_content == "二中特" )
        {
            $sps = split( ",", $drop_rate );
            $rt1 = $sps[0];
            $rt2 = $sps[1];
            $zm = split( ",", $rok );
            $rm1 = $zm[0];
            $rm2 = $zm[1];
            $winp = $drop_money / $znum * $rm1 * $rt1 + $drop_money / $znum * $rm2 * $rt2;
            if ( $winp != 0 )
            {
                $win += $winp + $cuts;
            }
            else
            {
                $win += 0 - ( $drop_money - $cuts );
            }
        }
    }
    return $win;
}

echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
include( "../inc/num.inc.php" );
echo "\r\n\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -