|
@@ -78,7 +78,12 @@
|
|
|
if($free_tongji < 0){
|
|
|
$free_tongji = 0;
|
|
|
}
|
|
|
- $refund_one_money = round( $free_tongji/$total_quantity , 2)??0;
|
|
|
+ if($free_tongji==0||$total_quantity==0){
|
|
|
+ $refund_one_money =0
|
|
|
+ }else{
|
|
|
+ $refund_one_money = round( $free_tongji/$total_quantity , 2);
|
|
|
+ }
|
|
|
+
|
|
|
<!-- var_dump($free_tongji );
|
|
|
var_dump($total_quantity ); -->
|
|
|
?>
|