比例体系修改

master
zhengyongxing 4 years ago
parent 9c2c771be9
commit e7c83a2811

@ -123,13 +123,13 @@ class CompanySystemRatioController extends AdminController
||!($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover'])) { ||!($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover'])) {
$end = '∞'; $end = '∞';
} elseif($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover'] == $vvv['turnover'] && $data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+2]['turnover']) { } elseif($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover'] == $vvv['turnover'] && $data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+2]['turnover']) {
$end = $data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+2]['turnover']; $end = floatval($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+2]['turnover']);
} else { } else {
$end = $data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover']; $end = floatval($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover']);
} }
$data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk]['turnover'] $data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk]['turnover']
= $vvv['turnover'].($vvv['instanceof']==1?'<=':'<').'月流水'. = floatval($vvv['turnover']).($vvv['instanceof']==1?'<=':'<').'月流水'.
('<'). ('<').
($end); ($end);
} else { } else {

@ -142,22 +142,22 @@
<td rowspan="{$data['data'][0]['row']}">{$data['data'][0]['original_package_name']|default='无'}</td> <td rowspan="{$data['data'][0]['row']}">{$data['data'][0]['original_package_name']|default='无'}</td>
<td rowspan="{$data['data'][0]['game_data'][0]['row']|default=1}">{$data['data'][0]['game_data'][0]['game_name']|default='无'}</td> <td rowspan="{$data['data'][0]['game_data'][0]['row']|default=1}">{$data['data'][0]['game_data'][0]['game_name']|default='无'}</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0]['turnover']|default='无阶梯'}</td> <td>{$data['data'][0]['game_data'][0]['ratio_data'][0]['turnover']|default='无阶梯'}</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][3]|default='0.00'}%</td> <td>{$data['data'][0]['game_data'][0]['ratio_data'][0][3]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][0]|default='0.00'}%</td> <td>{$data['data'][0]['game_data'][0]['ratio_data'][0][0]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][1]|default='0.00'}%</td> <td>{$data['data'][0]['game_data'][0]['ratio_data'][0][1]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][2]|default='0.00'}%</td> <td>{$data['data'][0]['game_data'][0]['ratio_data'][0][2]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][4]|default='0.00'}%</td> <td>{$data['data'][0]['game_data'][0]['ratio_data'][0][4]|floatval}%</td>
</tr> </tr>
<foreach name="data['data'][0]['game_data'][0]['ratio_data']" item="ratio_data" key="rkey"> <foreach name="data['data'][0]['game_data'][0]['ratio_data']" item="ratio_data" key="rkey">
<if condition="$rkey gt 0"> <if condition="$rkey gt 0">
<tr> <tr>
<td>{$ratio_data['turnover']|default='无阶梯'}</td> <td>{$ratio_data['turnover']|default='无阶梯'}</td>
<td>{$ratio_data[3]|default='0.00'}%</td> <td>{$ratio_data[3]|floatval}%</td>
<td>{$ratio_data[0]|default='0.00'}%</td> <td>{$ratio_data[0]|floatval}%</td>
<td>{$ratio_data[1]|default='0.00'}%</td> <td>{$ratio_data[1]|floatval}%</td>
<td>{$ratio_data[2]|default='0.00'}%</td> <td>{$ratio_data[2]|floatval}%</td>
<td>{$ratio_data[4]|default='0.00'}%</td> <td>{$ratio_data[4]|floatval}%</td>
</tr> </tr>
</if> </if>
</foreach> </foreach>
@ -171,11 +171,11 @@
<foreach name="game_data['ratio_data']" item="game_data_other" key="okey"> <foreach name="game_data['ratio_data']" item="game_data_other" key="okey">
<tr> <tr>
<td>{$game_data_other['turnover']|default='无阶梯'}</td> <td>{$game_data_other['turnover']|default='无阶梯'}</td>
<td>{$game_data_other['3']|default='0.00'}%</td> <td>{$game_data_other['3']|floatval}%</td>
<td>{$game_data_other['0']|default='0.00'}%</td> <td>{$game_data_other['0']|floatval}%</td>
<td>{$game_data_other['1']|default='0.00'}%</td> <td>{$game_data_other['1']|floatval}%</td>
<td>{$game_data_other['2']|default='0.00'}%</td> <td>{$game_data_other['2']|floatval}%</td>
<td>{$game_data_other['4']|default='0.00'}%</td> <td>{$game_data_other['4']|floatval}%</td>
</tr> </tr>
</foreach> </foreach>
@ -189,11 +189,11 @@
<td rowspan="{$sun_data['row']}">{$sun_data['original_package_name']|default='无'}</td> <td rowspan="{$sun_data['row']}">{$sun_data['original_package_name']|default='无'}</td>
<td rowspan="{$sun_data['game_data'][0]['row']}">{$sun_data['game_data'][0]['game_name']|default='无'}</td> <td rowspan="{$sun_data['game_data'][0]['row']}">{$sun_data['game_data'][0]['game_name']|default='无'}</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['turnover']|default='无阶梯'}</td> <td>{$sun_data['game_data'][0]['ratio_data'][0]['turnover']|default='无阶梯'}</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['3']|default='0.00'}%</td> <td>{$sun_data['game_data'][0]['ratio_data'][0]['3']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['0']|default='0.00'}%</td> <td>{$sun_data['game_data'][0]['ratio_data'][0]['0']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['1']|default='0.00'}%</td> <td>{$sun_data['game_data'][0]['ratio_data'][0]['1']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['2']|default='0.00'}%</td> <td>{$sun_data['game_data'][0]['ratio_data'][0]['2']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['4']|default='0.00'}%</td> <td>{$sun_data['game_data'][0]['ratio_data'][0]['4']|floatval}%</td>
</tr> </tr>
@ -203,11 +203,11 @@
<tr> <tr>
<td>{$game_datas['turnover']|default='无阶梯'}</td> <td>{$game_datas['turnover']|default='无阶梯'}</td>
<td>{$game_datas['3']|default='0.00'}%</td> <td>{$game_datas['3']|floatval}%</td>
<td>{$game_datas['0']|default='0.00'}%</td> <td>{$game_datas['0']|floatval}%</td>
<td>{$game_datas['1']|default='0.00'}%</td> <td>{$game_datas['1']|floatval}%</td>
<td>{$game_datas['2']|default='0.00'}%</td> <td>{$game_datas['2']|floatval}%</td>
<td>{$game_datas['4']|default='0.00'}%</td> <td>{$game_datas['4']|floatval}%</td>
</tr> </tr>
</if> </if>
@ -219,21 +219,21 @@
<tr> <tr>
<td rowspan="{$game_datas['row']}">{$game_datas['game_name']|default='无'}</td> <td rowspan="{$game_datas['row']}">{$game_datas['game_name']|default='无'}</td>
<td >{$game_datas['ratio_data'][0]['turnover']|default='无阶梯'}</td> <td >{$game_datas['ratio_data'][0]['turnover']|default='无阶梯'}</td>
<td >{$game_datas['ratio_data'][0][3]|default='0.00'}%</td> <td >{$game_datas['ratio_data'][0][3]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][0]|default='0.00'}%</td> <td >{$game_datas['ratio_data'][0][0]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][1]|default='0.00'}%</td> <td >{$game_datas['ratio_data'][0][1]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][2]|default='0.00'}%</td> <td >{$game_datas['ratio_data'][0][2]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][4]|default='0.00'}%</td> <td >{$game_datas['ratio_data'][0][4]|floatval}%</td>
</tr> </tr>
<volist name="game_datas['ratio_data']" id="game_data_others" key="otherskey"> <volist name="game_datas['ratio_data']" id="game_data_others" key="otherskey">
<if condition="$otherskey-1 gt 0"> <if condition="$otherskey-1 gt 0">
<tr> <tr>
<td>{$game_data_others['turnover']|default='无阶梯'}</td> <td>{$game_data_others['turnover']|default='无阶梯'}</td>
<td>{$game_data_others['3']|default='0.00'}%</td> <td>{$game_data_others['3']|floatval}%</td>
<td>{$game_data_others['0']|default='0.00'}%</td> <td>{$game_data_others['0']|floatval}%</td>
<td>{$game_data_others['1']|default='0.00'}%</td> <td>{$game_data_others['1']|floatval}%</td>
<td>{$game_data_others['2']|default='0.00'}%</td> <td>{$game_data_others['2']|floatval}%</td>
<td>{$game_data_others['4']|default='0.00'}%</td> <td>{$game_data_others['4']|floatval}%</td>
</tr> </tr>
</if> </if>
</volist> </volist>

Loading…
Cancel
Save