diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index 96c08c0b5..6659484eb 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -1029,7 +1029,7 @@ function PromoteStatistics($orderNo) { } function showPercent($num) { - if($num-0 >= 0){ + if($num-0 > 0){ if(strpos($num,"%")){ return $num; }else{ diff --git a/Application/Admin/View/PromoteCompany/export.html b/Application/Admin/View/PromoteCompany/export.html index 826b5dd78..f65b06fec 100644 --- a/Application/Admin/View/PromoteCompany/export.html +++ b/Application/Admin/View/PromoteCompany/export.html @@ -195,7 +195,7 @@ {$p_ratio['turnover_ratio'][0]['name']|default="--"} - {$p_ratio['turnover_ratio'][0]['ratio']|default="--"} + {$p_ratio['turnover_ratio'][0]['ratio']|showPercent} {$p_ratio['cp_ratio'][$gamekey]['name']|default="--"} {$p_ratio['cp_ratio'][$gamekey]['ratio']|showPercent} @@ -241,7 +241,7 @@ {$promote['list'][0]['turnover_ratio'][0]['name']|default="--"} - {$promote['list'][0]['turnover_ratio'][0]['ratio']|default="--"} + {$promote['list'][0]['turnover_ratio'][0]['ratio']|showPercent} {$promote['list'][0]['cp_ratio'][0]['name']|default="--"} {$promote['list'][0]['cp_ratio'][0]['ratio']|showPercent} @@ -288,10 +288,10 @@ {$game['turnover_ratio'][0]['name']|default="--"} - {$game['turnover_ratio'][0]['ratio']|default="--"} + {$game['turnover_ratio'][0]['ratio']|showPercent} {$game['cp_ratio'][0]['name']|default="--"} - {$game['cp_ratio'][0]['ratio']|default="--"} + {$game['cp_ratio'][0]['ratio']|showPercent} - -